itafroma/skeleton

Skeleton package for PHP projects.

v1.0.0 2015-04-06 04:17 UTC

This package is auto-updated.

Last update: 2024-03-15 05:26:38 UTC


README

This is a placeholder/skeleton project to load the essential configuration and packages I use for development of PHP projects.

Conventions

Dependencies

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.