dev-master
9999999-devSkelton application from the phppeanuts framework
AGPL-3.0
The Requires
Skelton application from the phppeanuts framework
Version 2.3.0.rc1 skeleton application, (*1)
Skeleton application from phpPeanuts 2.2.0. adapted to the use of composer. This version does not include the examples or pntUnit., (*2)
To install run:
bash
composer create-project metaclass-nl/phppeanuts-skeleton my_project_name dev-master
Before testing you need to make configurations in conf/scriptMakeSettings.php, (*3)
Documentation of phpPeanuts: https://www.phppeanuts.org/, (*4)
, (*5)
Since 2.2.0, (*6)
To install your existing applications in the skeleton: - backup your existing applications - adapt your Site class to configure class and skin inclusion from new locations, like src/classSite.php from the skeleton does - add or adapt Gen (try)includeClass overrides to use new classes location and library class inclusion configuration like src/classGen.php from the skeleton does - move contents of your classes folder to src - move contents of your includes folder to resources/views - move the rest of your files and folder to public - adapted each of your index.php files to use composers autoload.php, like emptyapp/index.php does - remove composer.lock from .gitignore so that the exact versions of the libraries you used in development are registered in git and can be installed easily after git checkout or pull - remove emptyapp, (*7)
Additionally you may: - use composer libraries by adding them to composer.json require or require-dev - move your reusable class library folders to separate composer libraries - adapt composer.json to have composer install your libraries - adapt src/classSite.php $pntLibraries to use the classes from your libraries once installed (only those that need to be loaded through Gen::(try)includeClass) - run composer update to install the libraries, (*8)
If you choose to use a different directory instead of vendor you need to: - adapt src/classSite.php $pntLibraries to use the correct locations - adapted each of your index.php files to the location of composers autoload.php,, (*9)
, (*10)
, (*11)
Skelton application from the phppeanuts framework
AGPL-3.0