Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
85 lines (79 sloc) 2.43 KB
<?xml version="1.0" encoding="UTF-8"?>
<package version="2.1" xmlns="" xmlns:tasks="" xmlns:xsi="" xsi:schemaLocation="">
<summary>Library for accessing stored procedures as PHP Method
This package make stored procedures from PostgreSQL and others SGDB
can used as PHP Methods.
You have PDOStatement as answer like in this sample:
-- in database dev
create or replace function teste() returns varchar(10) as
return 'teste';
language 'plpgsql';
$a = new PDO(&quot;pgsql:host=localhost;port=5432;dbname=dev;user=postgres;password=root&quot;);
$pl2method = \PEAR2\DB\Pl2Method\Pl2Method::getInstance($a);
here you have a PDOStatement
$returned = $pl2method-&gt;public-&gt;teste();
var_dump( $returned );
and You can FetchAll()
<name>Ivo Nascimento</name>
<license uri="">New BSD License</license>
<notes>Package PEAR2_DB_Pl2Method release notes for version 0.1.0.
Support to just Psql PDO Driver
without type validation yet
Package PEAR2_DB_Pl2Method API release notes for version 0.1.0.</notes>
<dir name="/">
<dir name="examples">
<file role="doc" name="teste.php"/>
<dir name="src" baseinstalldir="PEAR2">
<dir name="DB">
<dir name="Pl2Method">
<dir name="Driver">
<file role="php" name="Pgsql.php"/>
<file role="php" name=".gitignore"/>
<file role="php" name="SGDBDriver.php"/>
<file role="php" name="SGDBInterface.php"/>
<file role="php" name="Pl2Method.php"/>