Download the PHP package chillem/nucleus without Composer
On this page you can find all versions of the php package chillem/nucleus. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package nucleus
Nucleus
A Slim based PHP application scaffolding.
This is more than a framework, thus the word "scaffolding." Nucleus is a fully functional out-of-the-box web application. All you need to do is build your environment, define values in config/.env, run the database migrations and seeds, then your app is ready to go!
The major components and relevant documentation are below:
- Slim (framework) https://www.slimframework.com/
- Twig (templates) https://twig.symfony.com/
- Phinx (database migrations) https://phinx.org/
- Eloquent (ORM) https://laravel.com/docs/5.5/eloquent
- Monolog (logging) https://github.com/Seldaek/monolog
- Respect Validation (validation) https://github.com/Respect/Validation
- Whoops (error reporting) https://github.com/filp/whoops
- League\Event (event emitter) http://event.thephpleague.com/2.0/
- League\CLImate (CLI output formatting) http://climate.thephpleague.com/
- Swiftmailer (email) https://swiftmailer.symfony.com/
Requirements
- PHP >= 7.1
- Composer
- NPM
- MariaDB 10.1.30 or equivalent
Installation
php composer create-project chillem/nucleus [your-directory-name]
That command will create a new directory and clone Nucleus into it. Next you need to point a virtual host to the public/
directory and ensure that logs/
is writeable by your web server user.
Fetch the required NPM modules:
npm install
Copy config/env.dist
to config/.env
and edit that file with all of your required configuration values.
Next run the initial database migration to create the schema and populate some initial data:
php vendor/bin/phinx migrate -e development
If you want to insert the data that I initially use (some users and role associations) run the following:
php vendor/bin/phinx seed:run -s GlobalSettings
php vendor/bin/phinx seed:run -s Users
php vendor/bin/phinx seed:run -s Roles
php vendor/bin/phinx seed:run -s RoleUser
Use the CLU utility to deploy the default template:
bin/nucleate build
Finally, update composer.json
to reflect your application's details.
CLI Utility
v1.0.1-beta introduces a new semi-experimental feature -- a CLI command runner. The first functionality provider is that of a wrapper around those CLI scripts provided by other packages.
To run Phinx commands:
bin/nucleate db migrate -e development
To run PHPUnit:
bin/nucleate test
To run PHPCS:
bin/nucleate cs -n --standard=PSR1,PSR2 src/
bin/nucleate csfix -n --standard=PSR1,PSR2 src/
Anything else is passed directly through to the command runner. Commands are defined in src/Helpers/Commands
and
extend the BaseCommand class.
More information about commands can be found here: https://github.com/adrianfalleiro/slim-cli-runner (Note: I have chosen to use the nomenclature "command" rather than "task" for the sake of consistency.)
Contact
Email: [email protected]
All versions of nucleus with dependencies
slim/slim Version 3.*@dev
monolog/monolog Version ^1.17
vlucas/phpdotenv Version ^2.4.0
illuminate/database Version ^5.5
robmorgan/phinx Version ^0.9.2
firebase/php-jwt Version ^5.0
tuupola/slim-jwt-auth Version ^2.3
ramsey/uuid Version ^3.7
dopesong/slim-whoops Version ^2.2
slim/twig-view Version ^2.3
chillem/dbug Version dev-master
respect/validation Version ^1.1
slim/csrf Version ^0.8.2
slim/flash Version ^0.4.0
league/event Version ^2.1
league/climate Version ^3.2
adrianfalleiro/slim-cli-runner Version ^2.4
akrabat/ip-address-middleware Version ^1.0
guzzlehttp/guzzle Version ^6.3
swiftmailer/swiftmailer Version ^6.0
pelago/emogrifier Version ^2.0