Download the PHP package narrowspark/coding-standard without Composer

On this page you can find all versions of the php package narrowspark/coding-standard. 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 coding-standard

Narrowspark Coding Standard

The Narrowspark Coding Standard for all Narrowspark projects.

Installation

Use

Settings.yml

Create a configuration file settings.yml in .github

PHPstan

Create a configuration file phpstan.neon and phpstan-baseline.neon.

Follow the links to check, how to configure the rules:

The Narrowspark PHPstan rules providing configurations for symplify/phpstan-rules.

Default configurations:

PHP-CS-Fixer

Create a configuration file .php_cs in the root of your project with this content:

Info:

The used php-cs-fixer rules.

For more information, take a look on php-cs-fixer-config.

Psalm

Add your config with this command.

Or use our configuration

Now you need to add the phpunit and mockery plugin to the created psalm.xml

Infection

The first time you run Infection for your project, it will ask you questions to create a config file infection.json.dist

Rector

Create rector.php and add the configurations to it.

Info: for more information about existing sets and setting options, take a look on rectorphp docs.

Composer

Then edit your composer.json file and add these scripts:

Tip: if some processes taking longer than the default composer process-timeout: 300 you can add this to in your composer.json

Add .php_cs.cache to your .gitignore file.

Versioning

This library follows semantic versioning, and additions to the code ruleset are performed in major releases.

Testing

Contributing

If you would like to help take a look at the list of issues and check our CONTRIBUTING.md guide.

Note: please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

License

The Narrowspark Coding Standard is open-sourced software licensed under the MIT license


All versions of coding-standard with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
infection/infection Version ^0.21.3
narrowspark/php-cs-fixer-config Version ~6.3.2
phpstan/phpstan Version ^0.12.80
phpstan/phpstan-deprecation-rules Version ^0.12.6
phpstan/phpstan-mockery Version ^0.12.12
phpstan/phpstan-phpunit Version ^0.12.17
phpstan/phpstan-strict-rules Version ^0.12.9
psalm/plugin-mockery Version ~0.7.0
psalm/plugin-phpunit Version ^0.15.1
rector/rector Version ^0.10.0
rector/rector-phpunit Version ^0.10.0
slam/phpstan-extensions Version ^5.1.0
symplify/phpstan-rules Version ^9.2
thecodingmachine/phpstan-strict-rules Version ^0.12.1
vimeo/psalm Version ^4.6.2
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 narrowspark/coding-standard contains the following files

Loading the files please wait ....