Rector
fig-standards
Our great sponsors
Rector | fig-standards | |
---|---|---|
112 | 47 | |
8,222 | 12,509 | |
1.9% | 0.1% | |
9.9 | 7.7 | |
4 days ago | 1 day ago | |
PHP | ||
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Rector
-
Rector keeps your PHP code base fresh and perfect
As part of the journey to PHP perfection, you should embrace Rector. It's a amazing, free, and open-source tool for migrations, code quality, type coverage, pushing PHPStan to the highest levels, and yes, it can even auto-fix your existing code! It seamlessly integrates into the CI process, making your development workflow smoother than ever.
-
Starting with Rector PHP: Improving Your PHP Code with Automation
Website: https://getrector.com/
-
What Would You Do? PHP 8 and WordPress Theme
If you want a speed boost, there's a tool: https://github.com/rectorphp/rector
-
How to investigate PHP 8.0 compatibility in my application
Rector can help automating some changes.
-
Materials/Topics for Senior dev new to PHP
Yep... Rector
-
Upgrading PHP 7.4 to 8.0
I'd also recommend taking a look at Rector to help automate some of this.
-
Avoiding empty() in PHP
rector/rector
-
7.4 to 8.x upgrade help
https://github.com/rectorphp/rector might be useful.
-
Is it too painful to go from 5.2 to 8.2?
You could give rector a try
-
PHP Deprecated: mysql_connect()
If you want to upgdate an old project quickly, I recommend checking out Rector, which, among other uses, can quickly update code from older PHP versions.
fig-standards
- Moving PHP forward through collaboration and standards
-
A workaround to handle PSR-4 && WordPress Coding Standards at same time
The namespaces and class names must follow this example.
-
Materials/Topics for Senior dev new to PHP
I would familiarize yourself with the following PHP standards: https://www.php-fig.org
-
Autoloading, coding standards and file structure in WordPress plugin development
The PHP Standard Recommendation, or PSR for short, from the aforementioned PHP-FIG.
- PHP-FIG considering raising money to cover $30/year costs
- PHP-FIG planning to raise money to cover $30/year costs
-
PSR-4 Autoloading Woes
That's what happens if you use a PSR-4 autoloader and not utilise PSR-4 in your project structure ๐ So either use PSR-0 or properly use PSR-4.
- PHPDoc, PSR-5 and commenting inside the code
- PHP-Fig Is Down
-
I donโt get all the hate for PHP and at this point I am too afraid to ask.
PHP really "got it's act together" in my view when packagist and composer (which are PHP's equivalent of npm) became mainstream and with the release of the PSR community standards. We were admittedly a little behind the curve with regards to package managers but with standardised formats and not having to copy and paste zip file libraries anymore, PHP received a new lease of life.
What are some alternatives?
PHP CS Fixer - A tool to automatically fix PHP Coding Standards issues
sulu - Core framework that implements the functionality of the Sulu content management system
PHPStan - PHP Static Analysis Tool - discover bugs in your code without running it!
laravel-totem - Manage Your Laravel Schedule From A Web Dashboard
Phpactor - Mainly a PHP Language Server with more features than you can shake a stick at
Symfony - The Symfony PHP framework
PHP Code Sniffer - PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards.
headless-wp-starter - ๐ช WordPress + React Starter Kit: Spin up a WordPress-powered React app in one step
Psalm - A static analysis tool for finding errors in PHP applications
Brick\Money - A money and currency library for PHP
PHPCompatibility - PHP Compatibility check for PHP_CodeSniffer
app - Yii3 application template