Can a PEAR package rely on an external PHP script

From: Date: Sun, 15 Jun 2008 21:07:31 +0000
Subject: Can a PEAR package rely on an external PHP script
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-50283@lists.php.net to get a copy of this message
I'm considering putting together a PEAR package for interacting with a web service. Conceivably there are two packages needed, one to handle authentication and a second to fetch the data. There is already a script available to handle the authentication but nothing available for fetching the data. Is it appropriate to rely on the existing script for authentication or should they both be PEAR scripts? The usage would be along the lines of: $auth = new externalClass; $credentials = $auth->processLogin($authVars); $data = new PEARClass; $results = $data->fetch($credentials); It would be possible to port the external class to a PEAR package but the specification is frustrating to work with and I would prefer to avoid this if possible. I can't see anything in the documentation which would prohibit this but I'm also unaware of any other packages doing similar. Cheers, Jonathan Street

« previous php.pear.dev (#50283) next »