Int-or-not is a project mainly written in PHP, it's free.
Code and tests from CSI: PHP's "The cure is worse than the disease"
Code and tests from CSI: PHP's "The cure is worse than the disease" http://csiphp.com/blog/2011/09/30/the-cure-is-worse-than-the-disease