Download the PHP package karlosagudo/fixtro without Composer

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

Fixtro

Build Status

A tool/framework to fix and check static code analysis in our enviroments.

90% Users just need to run the install command, install the precommit and thats it, you will have a fixer of the code, and a way to analyze your code so detects possible(or future) errors. In order to do so execute:

composer require karlosagudo/fixtro --dev

vendor/bin/fixtro install

Usage:

{vendor-bin}/fixtro

In order to install:

{vendor-bin}/fixtro install    

This will install fixtro dependencies and it as a precommit hook.

This is the command will be executed in each precommit:

{vendor-bin}/fixtro precommit

If want more info about the processes use verbose option -vvv

Fixtro uses local binaries in case it found it, (for example phpunit, phpmd, php-cs-fixer), but in case it doesnt find it, it uses the own from fistro. (Thats why the install run a composer inside the vendor folder)

With this special feature, there is no need to install anymore php-cs-fixer, phpunit etc in new projects, only need to install fixtro on it. Also , fixtro will try to look for local config files ie: .php_cs, phpunit.xml , inside the root folder of your project or the build one. So, if you want to configure the project just think, as is php_cs_fixer, or phpunit were installed on it.

Requisites

Important Read the section about Uncomfortable errors, and generate your own config files (.php_cs, phpunit.xml, psalm.xml, phpmd.xml) (TODO: this files will be generated in the install) You can put this files, in the root of your project, or in the build folder.

Commands

Are in the folder src/CodeQualityTool/Commands. There is a general Abstract called GeneralCommand, that normal commands will heritage.

Examples:

All Commands have an array where you can put the analyzers, and filter by files (folder FilterFiles), and add extra parameters. This analyzers are in the Checker folder.

Checkers

Checkers are the fixers or checkers that run in each commit and are already configured to be used in fixtro List of Checkers

Uncomfortable errors

Some of the checkers will show possible errors, that are almost impossible to solve, or there is no need to lost time on it, but you still want to run the other checkers.

This usually happens on phpmd and psalm. You can configure your own configuration files for this projects, or avoid errors with annotations on the code:

You can also avoid errors, using a listener in your project. Check next section

Control Fixtro in your own project

Using events

Config File Reference

Config fixtro.yml Reference

TODO:


All versions of fixtro with dependencies

PHP Build Version
Package Version
Requires php Version ^7.0
symfony/console Version ^2.0 || ^3.0 || ^4.0
symfony/process Version ^2.0 || ^3.0 || ^4.0
symfony/yaml Version ^2.0 || ^3.0 || ^4.0
symfony/event-dispatcher Version ^2.0 || ^3.0 || ^4.0
symfony/finder Version ^2.0 || ^3.0 || ^4.0
behat/behat Version ^3.3
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 karlosagudo/fixtro contains the following files

Loading the files please wait ....