Skip to content
/ php-template Public template

Basic template for my simple PHP projects

License

Notifications You must be signed in to change notification settings

DJTommek/php-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP-Template

Basic template for small-sized PHP Projects with few most used utils with as few dependency as possible.

Installation

  1. Click on "Use this template" button on DJTommek/php-template Github repository page.
  2. Fill up necessary details as you creating new repository
  3. Run composer install
  4. Open index.php in browser

ℹ Note: composer install and composer update will automatically generate data/config.local.php if not exists. You can change and override default values which are extended from src/libs/DefaultConfig.php

PHPUnit testing

composer test

Contains only one dummy test to show, how to create more tests. Quick info:

  • folder structure should reflect /src/libs as much as possible
  • class names must have same name as file name: class DummyTest -> DummyTest.php
  • file name and classnames must contain suffix Test: DummyTest.php and class DummyTest
  • methods has to have prefix test: function testDummyVariable().

See phpunit.de website for detailed info.

PHPStan static analysis tool

composer phpstan

Finding errors in app without running it and code style keeper.

See phpstan.org website for more info.

About

Basic template for my simple PHP projects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages