2017 © Pedro Peláez

project php7-starter-kit

This is a starter kit to begin a application with PHP 7.



This is a starter kit to begin a application with PHP 7.

  • Friday, August 11, 2017
  • by EyepaxPrasanna
  • Repository
  • 2 Watchers
  • 1 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 150 % Grown


, (*1)

PHP 7 Starter kit

Eyepax IT Consulting (Pvt) Ltd , (*2)

About PHP 7 Starter kit

This is a starter kit for those who are looking to build an application with PHP 7. This is an enhanced build of PHP7 Boilerplate. The additions are, (*3)

Quick start

Install with composer., (*4)

composer create-project eyepax-prasanna/php7-starter-kit <project-path> -s dev

Using the PHP 7 Starter kit

This starter kit is designed to use with ease. It has well defined folder structure., (*5)

  • config folder has configuration files, which you can add as many files as you want. You can access the config values from anywhere, by calling the file name and keys with dot notation. Eg: config('general.pagination_per_page')
  • Can define environment variables in .env file and can call them using env() function. A sample env file is given (.env.example).
  • src/app folder has the controllers, libraries, models and repositories.
  • src/resources folder can have the template view files.
  • src/routes.php can have the routes for the application. For more details on the routing, please check the PHRoute documentation.
  • All the Input values can be retrieved using Laravel style. To get all input values, use Input::all(), and to get a specific value use Input::get('item').
  • phpcs is configured. So, can make the code comply with PSR standards.
  • url() function will give you the URL of the application. You can append a part of URL by passing it as an argument. Eg: url('users') will give you http://{url-of-app}/users.
  • storage_path(), function will give you the relative path for the storage folder. So you can save the uploaded files there.
  • public_path(), function will give you the relative path for the web folder.
  • dd('contents') will print and die (A Laravel style function).

The Versions