Download the PHP package avirdz/laravel-git-sniffer without Composer

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

laravel-git-sniffer

An artisan command to check your code standards via pre-commit git hook

Install with composer

Add the provider to app config (You don't need to do this if using Laravel >= 5.5)

Use artisan to publish the config

Run artisan command to copy the pre-commit hook

If you are working with other developers and you prefer each time that someone makes a clone and runs composer install, the hook is automatically copied, just add the copy command to the composer scripts, anyways it runs only on the defined environment, which by default is local.

Config

Key Value Description
env (string) default: local The environment where the commands will be executed.
phpcs_bin (string) default: ./vendor/bin/phpcs bin for Php_CodeSniffer, installed as a dependency.
standard (string) default: PSR2 Code standard
encoding (string) default: utf-8 The encoding of your source files
extensions (array) default: php Valid php file extensions to check
phpcs_ignore (array) default: ./resources/views/* Blade templates are ignored by default
temp (string) default: .tmp_staging A temp directory where staged files will be copied
eslint_bin (string) bin for ESLint
eslint_config (string) Path to the eslintrc config file
eslint_extensions (array) default: js Valid js file extensions to check
eslint_ignore_path (string) Path to the .eslintignore file.

Note: Eslint ignores all hidden files and directories by default, since there is a temp staging folder and by default is hidden, you need to add it to the eslintignore files at the first line.

If you leave eslint_bin config empty it will be ignored, the same for phpcs_bin, but you need to configure at least one of them.

Resources

I'ts the same script just translated to php to work with laravel command.

License

MIT


All versions of laravel-git-sniffer with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.9
illuminate/console Version 5.*|^6.0
squizlabs/php_codesniffer Version ^2.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 avirdz/laravel-git-sniffer contains the following files

Loading the files please wait ....