Download the PHP package avengerscodelovers/laravel-cs without Composer

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

Laravel CS

This project aims to provide a common coding standards, static analysis configuration for Laravel projects.

Purpose

The purpose of this project is to share a standardized PHP-CS-Fixer and PHPStan configuration that can be easily used across different Laravel projects. By using this configuration, you can ensure consistent code formatting, style, and static analysis throughout your codebase.

Install

To use this configuration, install this composer package:

Usage

Code conventions

You can use PHP-CS-Fixer to check code conventions, format code with --config option:

To incorporate CI integration, you can utilize the following command to verify if the code adheres to the conventions:

By using this configuration, PHP-CS-Fixer will apply the defined rules to your codebase, ensuring that it adheres to the coding standards.

You can also add add the PHP-CS-Fixer command to the composer.json scripts:

After adding the script, you can run the PHP-CS-Fixer command by executing the following command in your terminal:

Static analysis

To perform static analysis on your code and identify potential issues or errors, you can use PHPStan.

First, create a phpstan.neon or phpstan.neon.dist file in the root of your application. It might look like this:

Then you can run PHPStan with the following command:

You may add the PHPStan command to the composer.json scripts:

After adding the script, you can run PHPStan by executing the following command in your terminal:

Usage with lint-staged

You can also integrate with lint-staged and pre-commit to automatically run the fixer, static analysis when committing changes:


All versions of laravel-cs with dependencies

PHP Build Version
Package Version
Requires friendsofphp/php-cs-fixer Version ^3.59
phpstan/phpstan Version ^1.11
larastan/larastan Version ^2.9
phpstan/phpstan-strict-rules Version ^1.6
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 avengerscodelovers/laravel-cs contains the following files

Loading the files please wait ....