Download the PHP package brekitomasson/php-cs-fixer-breki-config without Composer

On this page you can find all versions of the php package brekitomasson/php-cs-fixer-breki-config. 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 php-cs-fixer-breki-config

php-cs-fixer-breki-config

Check & fix styling

My own personal preferences for php-cs-fixer configuration. This is largely based on legibility and being able to understand the code quickly when reading it and places no emphasis on being compact, minimalistic or anything like that.

I believe in the old adage that "code is read far more than it is written", so this configuration is themed around that.

This project is also intentionally "light" and not tied to any framework or other third party package(s). The only required dependency for this project is php-cs-fixer, and this will likely continue to be true also in the future. For this reason, there is no ServiceProvider that integrates the package with Laravel or anything like that, even though I could consider releasing a separate package that provides a "Laravel wrapper" around this package at some point for simplicity's sake.

Installation and Usage

Install the project via composer as per usual:

Once installed into your project, the RuleSet can be used by php-cs-fixer by generating your own .php-cs-fixer file with contents similar to the following:

Future Plans and Ambitions

While I think php-cs-fixer is the best tool in the category, there are a couple of other tools out there that also perform various important functions when it comes to code analysis, linting and the long-term health of PHP projects. I may be adding more features to this project as time goes on so that it can be used for more than just my php-cs-fixer configuration, although it probably makes sense to handle those configurations in separate packages and have another package that ties them together somehow.

Also:

Thanks, Acknowledgements and Credit

First, a massive thanks to Fabien Potencier and Dariusz Rumiński for making php-cs-fixer, as well as to the PHP community at large for all your contributions to this project over the years. I've been a fan of the php-cs-fixer project from a distance for a long time and tinkered with configurations and various ways of integrating it in my own workflow more than I have with any other PHP package. It's to the point where php-cs-fixer is among the first handful of packages that I install, no matter what PHP project I'm working on.

I also want to thank a couple of other developers out there who have made their own php-cs-fixer config packages, as these were very useful to me to read for inspiration of how to structure the code and organize things. This includes:

Licence

This code is published under the MIT Licence. Feel free to do what you want with it. This includes adapting, copying, changing or removing any or all parts of it. I take no responsibility or ownership of anything you do with the code, of course, so use your common sense and make sure you understand what it does before using it in your own projects or something like that.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


All versions of php-cs-fixer-breki-config with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
ext-filter Version *
friendsofphp/php-cs-fixer Version ^v3.64
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 brekitomasson/php-cs-fixer-breki-config contains the following files

Loading the files please wait ....