Download the PHP package suilven/php-travis-enhancer without Composer

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

PHP Travis Enhancer

Build Status Scrutinizer Code Quality codecov.io

Latest Stable Version Total Downloads License Monthly Downloads Daily Downloads composer.lock

GitHub Code Size GitHub Repo Size GitHub Last Commit GitHub Activity GitHub Issues

codecov.io

Add stricter PHPStan and PHPCS coding standard checks, linting, Psalm standards checking, and detection of code duplication to your PHP projects.


Usage

Introduction

The goal of this package is to add strict coding checks to your PHP packages. I'd added these tasks manuallly to a couple of modules manually, and decided it was time to automate this as far as possible. Hence the existence of this package.

Any or all of the following coding checks can be added:

Warning!!

Note that this module alters your codebase, as such run this on a backed up source tree, preerably in a separate branch from master so that a pull request can later be submitted.

The following files are altered

Adding Code Checking Tools

Installation

Adding All Checks

This will take several minutes to run. If identical flags already exist, ditto coomposer script names, then these are left as is in .travis.yml and composer.json respecctively.

Adding Individual Checks

Checks can be added indiviually if so desired.

Note that the script checkCode in the altered composer file will only include the individual command installed.

Removal

This module is one shot, as such remove it after being used

Checking Code Locally

If the checks were installed using all then composer checkCode will run through the code checks. It is an alias for

If any one of these fail it will exit immediately.

What Does a Run Look Like?

This is snipped but hopefully enough to provide context. Here I am testing on an old small SilverStripe module.

Automatically Fixing Errors

Those errors marked above with an X can be automatically fixed.

Run Code Check After Automatic Fixing

These errors need fixed manually

Afterthoughts

I've had a go at applying this to a reasonably large codebase (Manticore PHP Search Client) and gave up due to the sheer volume of errors. As such I am uing this with new projects (including this one), and retrofixing old small projects.


License

License


All versions of php-travis-enhancer with dependencies

PHP Build Version
Package Version
Requires symfony/yaml Version ^3 | ^4 | ^5.2@dev
league/climate Version ^3.5
splitbrain/php-cli Version ^1.1
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 suilven/php-travis-enhancer contains the following files

Loading the files please wait ....