Download the PHP package haspadar/sheriff without Composer

On this page you can find all versions of the php package haspadar/sheriff. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package sheriff

Sheriff

Pre-configured strict quality gate for PHP

CI Coverage Mutation testing badge PHPStan Level Psalm

Over 1200 rules from 18 tools

Tool Rules
PHPStan 128 (48 strict + 80 haspadar custom) at level 9
Psalm 331 issue types at level 1
PHP_CodeSniffer 382 sniffs (Slevomat + core)
PHP-CS-Fixer 364 fixers (303 core + 61 kubawerlos)
PHPMD 6 rulesets, all enabled
Infection mutation testing, Covered MSI ≥ 80%

Configure

Customization is optional. If needed, create .sheriff.yaml in the project root.

Four settings cascade across every tool that consumes them:

Change one key, every consuming tool follows.

Use append to extend default lists:

Use override to replace individual keys:

Use php_cs_fixer.extend and phpcs.extend to inject native-syntax fragments at the end of the generated config. Useful when a built-in rule clashes with project code — for example, narrowing phpdoc_types instead of disabling it entirely:

The value is passed through verbatim; Sheriff does not parse it. Use a YAML block scalar (| or |-) for multi-line fragments.

Use envs to export environment variables in CI workflows. Each value is a shell command evaluated at runtime:

The full list of available keys and their defaults is generated to .sheriff/config.yaml on every sheriff sync.

.sheriff/ and .github/ are generated by sheriff sync and may be safely deleted.


Workflow

To change configuration:

  1. Edit .sheriff.yaml
  2. Run vendor/bin/sheriff sync

Do not edit .sheriff/ or the GitHub workflow file .github/workflows/sheriff.yml directly — they are generated and will be overwritten.


Commands


Checks

PHP

Linters

CI


Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Ensure all checks pass
  4. Open a pull request

All pull requests must pass CI before merging.


License

MIT


All versions of sheriff with dependencies

PHP Build Version
Package Version
Requires php Version ~8.3.16 || ~8.4.3 || ~8.5.0
friendsofphp/php-cs-fixer Version ^3.95
haspadar/phpstan-rules Version >=0.36 <1.0.0
infection/infection Version ^0.33.0
kubawerlos/php-cs-fixer-custom-fixers Version ^3.36
phpmd/phpmd Version ^2.15
phpmetrics/phpmetrics Version ^2.9
phpstan/phpstan Version ^2.1
phpstan/phpstan-phpunit Version ^2.0
phpstan/phpstan-strict-rules Version ^2.0
phpunit/phpunit Version ^12.0
psalm/plugin-phpunit Version ^0.19.7
slevomat/coding-standard Version ^8.28
squizlabs/php_codesniffer Version ^4.0
symfony/process Version ^7.0
symfony/yaml Version ^7.4
vimeo/psalm Version ^6.14
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package haspadar/sheriff contains the following files

Loading the files please wait ...