PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Creating a PEAR Package

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> What do you miss in/about PEAR?
View previous topic :: View next topic  
Author Message
blackid



Joined: 17 Oct 2008
Posts: 1

PostPosted: Fri Oct 17, 2008 6:35 pm    Post subject: Creating a PEAR Package Reply with quote

Hi,
I was just creating a package when I got lost. I have created a database class but I am not aware how I could convert it into a package. Please help.

Thanks

Jyot Vakharia
http://www.blackidsolutions.com
_________________
http://www.loveofphp.com
Back to top
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1235

PostPosted: Sat Oct 18, 2008 2:58 pm    Post subject: Reply with quote

You need a package.xml file with details about the package and the files that belong to the package. Details can be found here:
http://pear.php.net/manual/en/guide.developers.package2.php

PEAR_PackageFileManager is a package that creates such a file for you (for the likely case that you don't want to create the XML file yourself):
http://pear.php.net/manual/en/package.pear.pear-packagefilemanager.php

Once you have that file, you can call "pear package" and the result will be a package file that can be installed via "pear install ...".
Back to top
View user's profile Send private message
Rawse



Joined: 20 Feb 2010
Posts: 1

PostPosted: Sat Feb 20, 2010 7:53 am    Post subject: ^^^^ Reply with quote

Ir worked better now...!! Thanks for the post!
_________________
how to play texas holdem
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> What do you miss in/about PEAR? All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement