package-for-laravel / new-project
Toolbox to boot up a Laravel Framework and Tools
Installs: 14
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 2
Forks: 1
Open Issues: 2
Type:project
Requires
- php: ^7.3
- fideloper/proxy: ^4.1
- laravel/framework: ^6
Requires (Dev)
- barryvdh/laravel-ide-helper: ^2.6
- doctrine/dbal: ^2.10
- facade/ignition: ^1.14
- friendsofphp/php-cs-fixer: ^2.16
- fzaninotto/faker: ^1.9
- laravel/tinker: ^2.0
- mockery/mockery: ^1.3
- nunomaduro/collision: ^3.0
- ocramius/package-versions: ^1.5
- package-for-laravel/testing-framework: ^1.1
- phploc/phploc: ^5.0
- phpunit/phpunit: ^8.5
- roave/security-advisories: dev-master
- sebastian/phpcpd: ^4.1
- slevomat/coding-standard: ^6.0
- squizlabs/php_codesniffer: ^3.5
Suggests
- bugsnag/bugsnag-laravel: Bugsnag for Laravel
- owen-it/laravel-auditing: For auditing eloquent models
- package-for-laravel/api: Tools for a laravel api install.
- package-for-laravel/blade: Blade helpers and tools
- package-for-laravel/legacy-passwords: For migrating over old passwords
- spatie/laravel-cors: CORS support for API
- spatie/laravel-permission: Permission System
- zircote/swagger-php: Open API Generation for API
- dev-master
- 4.0.2
- 4.0.1
- 4.0.0
- 3.2.0
- 3.1.0
- 3.0.3
- 3.0.2
- 3.0.1
- 3.0.0
- 2.0.5
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 1.8.4
- 1.8.3
- 1.8.2
- 1.8.1
- 1.7.0
- 1.6.1
- 1.6.0
- 1.5.7
- 1.5.6
- 1.5.5
- 1.5.4
- 1.5.3
- 1.5.2
- 1.5.1
- 1.5.0
- 1.4.1
- 1.4.0
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.8
- 1.2.7
- 1.2.6
- 1.2.5
- 1.2.4
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.8
- 1.1.7
- 1.1.6
- 1.1.5
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.0.2
- 1.0.1
- 1.0.0
- dev-dependabot/composer/symfony/http-kernel-4.4.13
- dev-dependabot/composer/symfony/http-foundation-4.4.7
This package is auto-updated.
Last update: 2020-11-05 23:19:29 UTC
README
ARCHIVED: This project is archived and no longer maintained.
Formerly Laravel Boot
My Laravel boot up framework that I use to scaffold projects.
To create a new project with this framework, run the following command:
composer create-project package-for-laravel/new-project $1
Where $1
is the folder name you'd like to install into.
Development Notes
You could technically use this project set up with something like Valet or create your own virtual machine setup. You'll
also have to worry about having a compatible version of NPM on your system (which you could manage with nvm
should
you want to. This is optimized to use Docker, however. You can see the configuration in the docker-compose.yml
file
and the environment variable configurations in the .env
file.
If you are using something like PHPStorm, you can configure it to use various Docker containers automatically by pointing it to the compose file. Otherwise, you can use the following useful scripts:
bin/dev/npm
will run a compatible version of NPM in a Docker container but use your local filesystem as the source.bin/dev/composer
will allow you to install composer dependencies or run composer scripts in the docker environment. Additionally, it will share your local filesystem cache to speed up working between containers.bin/dev/artisan
will run theartisan
script inside of the PHP Docker instance.bin/dev/test
will run the PHP unit tests using PHPUnit.bin/dev/test-with-coverage
will run those same tests, but with html coverage generated intests/html-coverage
.
Different PHP Containers
There are two different PHP containers. The first is the base which could be used for a production-style deploy. But, it's
basically the configuration without xdebug. The second is the php instance suffixed with -debug
which indicates it has debug
tools loaded in it full time (like xdebug currently). The regular instance is used to run unit tests. The debug instance
is used for your development (so you can use debugging) and for html code coverage generation.
Configuration
All configuration options are defined in the .env
file. You may change Docker settings there as well.
Unit Testing
Unit testing can be ran with composer test
, bin/dev/composer test
if using docker, or using bin/dev/test
if you'd like
to customize your parameters to the unit test run in docker. bin/dev/test
is the recommended way (or using a PHPStorm integration).)
npm run test
for Javascript tests, or bin/dev/npm run test
inside of docker.
IDE Helper
composer ide-helper-update
Lines of Code Generation
composer phploc
generates lines of code output in docs/phploc.txt
npm run jsloc
generates lines of code output in docs/jsloc.txt
PHP Linting
composer php-lint
will run PHPCS, PHP-Code-Sniffer (in Dry Run) and PHP Copy Paste Detector.
Deployment
There is a section of the composer file that has steps for deployment:
composer deploy
will run Laravel config and route caching.
Laravel Boot Automated Functions
- Install Laravel from the create-project format
- Copies over
.env.example
to.env
Credits
This package is created and maintained by Aaron Saray