Download the PHP package alcidesrc/php-skeleton without Composer
On this page you can find all versions of the php package alcidesrc/php-skeleton. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download alcidesrc/php-skeleton
More information about alcidesrc/php-skeleton
Files in alcidesrc/php-skeleton
Package php-skeleton
Short Description Application skeleton for projects based on PHP
License MIT
Informations about the package php-skeleton
PHP Skeleton
An application skeleton for modern PHP projects.
[TOC]
Summary
This repository contains an application skeleton following best practices.
Highlights
- Minimalist project
- Includes frequently used tools such as a Linter, PHPStan, PHPUnit, ClockMock, CodeSniffer and VarDumper.
Requirements
To use this repository you need:
Software
- Git - The free and open source distributed version control system.
Built with
This project was built with Dockerized PHP, a lightweight dockerized environment to build PHP applications.
Getting Started
Just clone the repository into your preferred path:
Conventions
Directory structure
Composer commands
Custom commands are added to composer.json
under the scripts
section.
Available commands
Command | Description |
---|---|
linter |
Runs the linter in parallel mode |
phpcs |
Runs PHP Check Style command following the PSR-12 |
phpcbf |
Runs PHP Code Beautifier and Fixer command following the PSR-12 |
phpstan |
Runs PHPStan with the specs defined at phpstan.neon configuration file |
phpunit |
Runs PHPUnit with the specs defined at phpunit.xml configuration file |
tests |
Runs PHPUnit without code coverage support |
coverage |
Runs PHPUnit with PCOV code coverage support |
Makefile
Additionally a Makefile is provided with frequently used commands:
Installing Dependencies
Running the Test Cases
Default command
Run only Unit testsuite
Volumes
Coverage report in HTML
Coverage report in HTML is generated on a root folder /coverage
[!TIP]
If you want the report is generated on a different path, just update accordingly the
composer.json
file under the sectionscripts
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities:
PLEASE DON'T DISCLOSE SECURITY-RELATED ISSUES PUBLICLY
Supported Versions
Only the latest major version receives security fixes.
Reporting a Vulnerability
If you discover a security vulnerability within this project, please open an issue here. All security vulnerabilities will be promptly addressed.
License
The MIT License (MIT). Please see LICENSE file for more information.