Some quick links to PHP Twitter APIs.
http://code.google.com/p/twitter-php/ lightweight
http://blog.slawcup.com/2007/04/full-twitter-php-library-ver-01/
http://classes.verkoyen.eu/twitter/
http://www.phpclasses.org/browse/package/4075.html
Oh yes, and finally the most obvious one:
http://apiwiki.twitter.com/Libraries#PHP
PHP-IDS, Web Application Firewall for PHP:
http://php-ids.org/
Perl Port of PHP-IDS (in CPAN):
http://search.cpan.org/~hinnerk/CGI-IDS/lib/CGI/IDS.pm
Django-IDS, Web Application Firewall for the Python Based Django Web Development Environment:
http://code.google.com/p/django-ids/
All three share the same set of rules.