Download the PHP package qb-technologies/laravel-config without Composer
On this page you can find all versions of the php package qb-technologies/laravel-config. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download qb-technologies/laravel-config
More information about qb-technologies/laravel-config
Files in qb-technologies/laravel-config
Package laravel-config
Short Description 🎯 Standardized PHP code quality configurations for PHP-CS-Fixer, PHPStan, and Rector. Share consistent coding standards across all your projects.
License MIT
Homepage https://github.com/QB-Technologies/laravel-config
Informations about the package laravel-config
PHP Tool Configs
🎯 Standardized PHP code quality configurations for PHP-CS-Fixer, PHPStan, and Rector. Share consistent coding standards across all your projects with a single Composer package.
This package provides battle-tested, production-ready configuration files that can be shared across all your PHP projects, ensuring consistent code quality, formatting standards, and static analysis rules. Stop duplicating configuration files—maintain them in one place and reuse everywhere.
✨ Features
- 🔧 Pre-configured PHP-CS-Fixer rules for consistent code formatting
- 🔍 PHPStan configuration with sensible defaults for static analysis
- ⚡ Rector setup for automated code refactoring and modernization
- 🪝 Git hooks included (pre-commit & pre-push) to enforce standards
- 📦 Easy installation via Composer
- 🎨 Fully extensible—override or extend any configuration
- 🔄 Semantic versioning for predictable updates
🚀 Quick Start
That's it! Then extend the base configurations in your project as needed.
📦 Installation
Step 1: Install the Package
Step 2: Install Git Hooks (Optional but Recommended)
Install the pre-commit and pre-push hooks:
Or use the included installer:
Usage
PHP-CS-Fixer
Create a .php-cs-fixer.php file in your project root:
PHPStan
Create a .phpstan.neon file in your project root:
Or, if you want to use the base config directly and only override specific parameters:
Rector
Create a rector.php file in your project root:
Updating Configurations
When you need to update the shared configurations:
- Make changes to the configuration files in this repository
- Commit and push the changes
-
Create a new tag (following semantic versioning):
- Update the version constraint in your project's
composer.jsonif needed - Run
composer update qb-technologies/laravel-configin your projects
Versioning
This package follows Semantic Versioning:
- MAJOR version for breaking changes (e.g., removing a rule)
- MINOR version for new features (e.g., adding new rules)
- PATCH version for bug fixes and minor updates
Customization
Each project can extend or override the base configurations as needed. The base configurations are designed to be:
- Comprehensive: Cover common code quality standards
- Extensible: Easy to extend with project-specific rules
- Flexible: Allow projects to customize paths, levels, and skip lists
Contributing
When proposing changes to the shared configurations:
- Test the changes in at least one project
- Document the reasoning for the change
- Ensure backward compatibility or clearly mark as a breaking change
- Update this README if usage instructions change
License
MIT License - see LICENSE file for details.