Source code: <a href="https://github.com/resonantcore/anti-csrf" rel="nofollow">https://github.com/resonantcore/anti-csrf</a><p>It's free software released under the Affero GNU Public License. Feel free to use it in other FLOSS projects written in PHP.