Download the PHP package enabel/coding-standard without Composer

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

Enabel Coding Standard

A CLI tool to initialize coding standards configuration for PHP/Symfony projects. Generates ready-to-use configuration files for code quality tools, CI/CD pipelines, and development environments.

Installation

Usage

Interactive Mode

Run the init command without options for interactive configuration:

You'll be prompted to configure:

Non-Interactive Mode

Use CLI options for automated setup:

CLI Options

Option Description Default
--project-name Project name Current directory name
--php-version PHP version (8.3, 8.4, 8.5) 8.4
--symfony Symfony version (7.4, 8.0) or "no" no
--database Database type (mariadb, mysql, postgresql) -
--database-version Database version -
--ci CI provider (gitlab, github, azure, none) none
--php-cs-fixer / --no-php-cs-fixer Include PHP-CS-Fixer yes
--phpstan / --no-phpstan Include PHPStan yes
--phpstan-level PHPStan level (6-9 or max) max
--rector / --no-rector Include Rector yes
--phpunit / --no-phpunit Include PHPUnit config yes
--dev-env Development environment (symfony-cli, docker, local) symfony-cli
--makefile / --no-makefile Include Makefile yes
--src-path Source directory path src
--tests-path Tests directory path tests
--force Overwrite existing files no
--skip-existing Skip existing files no
--output-dir Output directory .

Generated Files

Code Quality Tools

File Description
.php-cs-fixer.dist.php PHP-CS-Fixer configuration
phpstan.neon PHPStan configuration
rector.php Rector configuration
phpunit.dist.xml PHPUnit configuration
tools/php-cs-fixer/composer.json Isolated PHP-CS-Fixer dependencies
tools/phpstan/composer.json Isolated PHPStan dependencies
tools/rector/composer.json Isolated Rector dependencies

CI/CD Pipelines

File Description
.gitlab-ci.yml GitLab CI pipeline
.github/workflows/ci.yml GitHub Actions workflow
azure-pipelines.yml Azure DevOps pipeline

Development Environment

File Description
compose.yaml Docker Compose services
compose.override.yaml Docker Compose local overrides
Dockerfile PHP container (docker env only)
Makefile Development commands
composer-scripts.json Composer scripts configuration

Database Support

The following databases are supported with their recent versions:

Database Versions
MariaDB 11.4, 10.11, 10.6
MySQL 8.4, 8.0, 5.7
PostgreSQL 17, 16, 15

When a database is configured:

Post-Installation

After running init:

1. Install Tool Dependencies

Or use the Makefile:

2. Configure Database Connection (Symfony projects)

If you configured a database, you need to set the DATABASE_URL environment variable in your .env.local file:

MariaDB:

MySQL:

PostgreSQL:

Note: The CI pipelines are pre-configured with test database credentials. The DATABASE_URL in CI uses db as the database name because Symfony automatically appends _test suffix in test environment.

Available Make Commands

Command Description
make help Show available commands
make install Install all dependencies
make lint Run all linters
make analyze Run static analysis
make test Run tests
make ci Run full CI pipeline
make csf Check code style
make csf-fix Fix code style
make stan Run PHPStan
make rector Check Rector (dry-run)
make rector-fix Apply Rector fixes

License

MIT


All versions of coding-standard with dependencies

PHP Build Version
Package Version
Requires php Version >=8.3
symfony/console Version ^7.0 || ^8.0
symfony/filesystem Version ^7.0 || ^8.0
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 enabel/coding-standard contains the following files

Loading the files please wait ...