FreeBSD Installation for PHP5:
Installation from packages:
pkg_add php5-calendar
Installation from ports:
cd /usr/ports/misc/php5-calendar && make install clean
Then to enable this module, add the following to php.ini (usually in /usr/local/etc/php/extensions.ini)
extension=calendar.so