Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alihammad-gist/php-starter

Starting a new php project / lib. Use this.
https://github.com/alihammad-gist/php-starter

Last synced: 24 days ago
JSON representation

Starting a new php project / lib. Use this.

Awesome Lists containing this project

README

        

# A PHP Starter Project

A starting point with a lot of repetitive tasks already configured

1. PHP Codesniffer (using Laminas Coding Standard)
2. Psalm
3. PHPUnit

## Dependencies checking

To check undeclared implicit dependency,
[maglnet/composer-require-checker](https://github.com/maglnet/ComposerRequireChecker)
package can be used. It should be installed as global composer
package.
`composer global require maglnet/composer-require-checker`. Run
`composer run composer-require-check` to analyze the `src/` folder.

Similarly unused packages can be identified by
[composer-unused/composer-unused](https://github.com/composer-unused/composer-unused)
package. Again this should be installed locally, the package author
recommends downloading a `phar` release from github's release page.

## Using Phive to install linting and formatting binaries

The project include `.phive/phars.xml` file which lists all the
dependences for formatting and linting. Running `phive install`
will installs the phars in `tools/` directory.