nextpack / nextpack
Nextpack is a PHP Packages Framework (Starter Project)
Installs: 21
Dependents: 0
Suggesters: 0
Security: 0
Stars: 85
Watchers: 5
Forks: 25
Open Issues: 1
pkg:composer/nextpack/nextpack
Requires
- php: >=5.4.0
- illuminate/config: 5.2.*
Requires (Dev)
- mockery/mockery: 0.*
- phpunit/phpunit: 4.*
- symfony/var-dumper: 2.*
This package is not auto-updated.
Last update: 2025-10-22 21:22:35 UTC
README
NextPack is a PHP & Laravel Packages Starter, (Designed to help building high quality PHP Packages faster).
Clone NextPack and build your next open source package on top of it.
NextPack strives to facilitates and boosts the development process of PHP Packages. And it highly recommend producing framework agnostic packages.
Produce more open source composer packages with the least amount of time.
Highlights
Nextpack includes:
- Rich package skeleton, (containing common files required by almost every PHP package)
- Ready Unit Test
- Ready config files reader
- Ready Servie Provider (for Laravel)
- Ready Facade Class (for Laravel)
- Version Control: Git (
.gitattributes,.gitignore) - Continuous Integration: Travis and Scrutinizer (
.scrutinizer.yml,.travis.yml) - Testing: PHPUnit (
phpunit.xml) - Package Manager: Composer (
composer.json)
Installation
Software Requirement
- Git
- Composer
Installation Steps
git clone https://github.com/nextpack/nextpack.gitcomposer update- make sure everything is OK by running the tests
phpunit
Customization
After you install a fresh copy of Nextpack, the only thing you need to do is customizing it to meet your needs, before start codig your package.
The steps include renaming the code samples shipped with the Nextpack:
- Change the namespace of the application from
Nextpack\Nextpackto yourVendor-name\Package-name. (you can do this using the [Replace All] feature of your IDE). - Update the following values in
composer.json:name,description,keywords,authors,autoloadand don't forget to update thenamespaces. (you might need to runcomposer dump-autoloadafter the changes). - Run
composer install - Rename
SampleFacadeAccessor.phpand update the returned string inside thegetFacadeAccessor()function. - Rename
NextpackServiceProviderand update the content of the following functions:facadeBindings(),configPublisher()andimplementationBindings(). - Update the config file
nextpack.php, (or remove it if not necessary). - Delete this
README.mdfile. And rename theREADME.md.READYtoREADME.md. - Update
LICENSEby replacing::Vendor-Nameand::Package-Namewith your vendor and package names. - Edit the new
README.md - Delete the sample
testsfunction. Keep theTestCase.php. - Update the "testsuite" name in the
phpunit.xml.
Test
To run the tests, run the following command from the project folder.
$ ./vendor/bin/phpunit
Credits
License
The MIT License (MIT). See the License File for more information.