PHP Classes / pl2method

Execute PgSQL stored procedures as class functions

pl2method PHP Class

This class can be used to execute stored procedures on a PostgreSQL database by calling the class functions. It uses PHP 5 __call function to map class function calls to execute stored procedures with the same name on a given PostgreSQL database schema. The class passes function parameter values to the stored procedure as its parameters. If the values do not match the procedure expected types, the class throws an exception. It returns a PDO statement object that can be used to retrieve any result sets returned from the execution of the stored procedure.

Search in PHP Classes

Filter by tags