Download the PHP package bondforge/coding-standard without Composer

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

bondforge/coding-standard

Shared PHP CS Fixer configuration and custom fixers for BondForge projects.

The headline feature is the BondForge/braces_position fixer — a superset of php-cs-fixer's built-in braces_position that adds a next_line value for functions_opening_brace, forcing the opening brace of every function and method onto its own line (Allman style), including for multi-line signatures:

Installation

If the package is not published to Packagist, add the repository to the consuming project's composer.json first:

Usage

Create a .php-cs-fixer.dist.php in your project root that requires the shared config:

By default it scans bin/, public/, src/ and tests/ (whichever exist) relative to the current working directory.

Customising the scanned paths

Define $finder before the require and the shared config will use it instead of the default:

Then run it as usual:

The BondForge/braces_position rule

functions_opening_brace accepts a third value beyond the built-in fixer's options:

Value Behaviour
same_line Brace stays on the signature line.
next_line_unless_newline_at_signature_end Brace goes to the next line, unless the signature already wraps.
next_line (BondForge addition) Brace always goes to its own line, wrapped or not (Allman).

All other options (classes_opening_brace, control_structures_opening_brace, etc.) behave exactly like the built-in fixer and default to the same values PSR-12 uses.

Development

License

MIT. src/Fixer/Basic/BracesPositionFixer.php is derived from php-cs-fixer's BracesPositionFixer (© Fabien Potencier and Dariusz Rumiński, MIT). See LICENSE.


All versions of coding-standard with dependencies

PHP Build Version
Package Version
Requires php Version >=8.3
friendsofphp/php-cs-fixer Version ^3.95
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 bondforge/coding-standard contains the following files

Loading the files please wait ...