htr3n / php-project-template

A basic PSR-4 project skeleton for PHP development

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

htr3n/php-project-template

Build Status License: MIT Github All Releases

This project htr3n/project-template defines a simple starting point, PSR-4-compliant project skeleton for PHP development.

Installation

For the starting point, just check out the git project

git clone https://github.com/htr3n/php-project-template.git

or using composer

composer create-project htr3n/php-project-template your-project-name

Then, get into the newly created folder and issue the command composer install to retrieve necessary packages for your development and testing environment.

The PHP sources will be in src and the test files will be in tests. These folders are configured with PSR-4 autoloading using Composer. More namespaces / sources can be easily added with appropriate changes to composer.json.

"autoload": {
    "psr-4": {
      "App\\": "src/App/"
    }
}

and

"autoload-dev": {
    "psr-4": {
      "App\\": "tests/App/"
    }
 }

About

A basic PSR-4 project skeleton for PHP development

License:MIT License


Languages

Language:PHP 100.0%