itafroma / skeleton
Skeleton package for PHP projects.
Requires (Dev)
- phpunit/phpunit: ~4.6
This package is auto-updated.
Last update: 2024-12-15 07:10:30 UTC
README
This is a placeholder/skeleton project to load the essential configuration and packages I use for development of PHP projects.
Conventions
Dependencies
- Composer for dependency management
- PSR-4 for autoloading
- PHPUnit for unit-testing
- Scrutinizer for code analysis and reporting, configured to match PSR-1 and PSR-2 (among other things: see .scrutinizer.yml)
- Travis CI for continuous integration
Directory structure:
- bin: Executable artifacts
- build: Automatically generated artifacts from your build/CI process. For example, PHPUnit test results will be placed here.
- config: Configuration files that are not required to be in the project root
- src: PSR-4-compliant code
- tests: PSR-4-compliant PHPUnit tests
- vendor: Dependency artifacts from Composer
Usage
First, load this package as a project via Composer:
# Replace [PROJECT] with the desired name of your project directory
composer create-project itafroma/skeleton [PROJECT]
Remove the existing VCS history when asked: this information is specific to this repository, not your new project.
Next, modify the existing files to be specific to your new project:
Finally, update your project's composer.lock
:
composer update
Now you're ready to start development and push your new project to your favorite VCS.
Copyright and license
Where applicable, this project is released into the public domain. It is otherwise made available via the MIT license. A copy of the license can be found in the LICENSE file.