spatie.be
Psalm
Our great sponsors
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.
spatie.be
-
Installing Xdebug 3 on MacOS and Debug in VS Code
How do you debug your code in PHP? Do you use var_dump or dd in Laravel? Many of us also use logger to log output & figure out the problem in multiple steps. Spatie built a debugging tool called Ray that one can use to simplify the operation over dd or logger.
-
A Complete Guide To Managing User Permissions In Laravel Apps
In this article, we'll be using the Laravel Permission package from Spatie.
-
My MacBook Setup for Development!
Ray by Spatie - Debugger tool
-
Speeding up SSL checking process
We use Oh Dear from spatie.be to check availability, dead links, certs and more for our critical FQDNs. Works perfectly fine. we also see it as a way to give something back to them in return for all their hard work in maintaining their open-source packages for Laravel.
-
Modern PHP Cheat Sheet
The guys behind it work at Spatie[1] which you have probably heard of some of their packages, and Freek has a blog[2] that has a lot of PHP stuff on - lots Laravel, and lots just general new language stuff (covering PHP8 features etc)
-
Can anyone point me to a repo for a website built in Laravel that has what you would consider really well written tests that I can learn from.
Spatie (https://spatie.be) makes a lot of great packages for Laravel. It also has a website with video courses and the code is open-sourced here https://github.com/spatie/spatie.be. I’ve learned a lot about testing from Spatie packages.
-
Coming Up With Project Ideas (Naturally)
So I along with my colleague M H Hasib started working on a project of our own inspired from the API of laravel-permissions package by Spatie and the result was mongoose-permissions package.
Psalm
-
Laravel code-quality tools
Psalm is a static analysis tool for PHP. Much like PHPStan is to Larastan, Psalm has a plugin called Laravel Psalm that allows you to easily use it in Laravel projects.
- PHP 8.3
-
PHP libraries and tools
Psalm: A static analysis tool for finding errors in PHP applications. Plugins: boesing/psalm-plugin-stringf: Psalm plugin to provide more details for sprintf, printf, sscanf and fscanf functions. hectorj/safe-php-psalm-plugin: vimeo/psalm plugin for thecodingmachine/safe. marartner/psalm-no-empty: Psalm plugin to detect usage of empty(). marartner/psalm-strict-equality: Psalm plugin to enforce strict equality. psalm/plugin-phpunit: A PHPUnit plugin for Psalm. psalm/plugin-symfony: Psalm Plugin for Symfony. weirdan/doctrine-psalm-plugin: Stubs to let Psalm understand Doctrine better. ghostwriter/psalm-plugin: Provides an ALL-IN-ONE plugin for Psalm
-
PHP-Tokio – Use any async Rust library from PHP
PHP 8 is the best version of PHP yet, and the main reason why it's so good is precisely because it got rid of a huge amount of ugly, legacy behavior.
Upgrading a codebase to PHP 8 is not an insurmountable task, I've upgraded our 1 million SLOC codebase at work in just a few weeks, with the help of tools like https://psalm.dev and our own strict coding standard.
-
Top 6 PHP code quality tools 2023
Psalm is a static analysis tool specifically designed for PHP. It performs advanced type inference and checks for various types of errors, including type errors, undefined variables, incorrect function calls, and more. It provides comprehensive code analysis and helps improve code quality and maintainability. Documentation: You can find more information about Psalm, including installation instructions and usage details, in the official repository: Psalm Repository
-
Avoiding empty() in PHP
vimeo/psalm
- [Laravel] Maintenant que PHPStorm prend en charge le Psaume et le PHPSTAN, lequel utilisez-vous / recommandez-vous pour les projets Laravel?
- TIL how PHP type hinting works
-
Templates available in Yii3.
Static analysis - Psalm .
-
Moving from Java to PHP Project
Use https://psalm.dev/ and PHP code sniffer and a coding standard like https://www.doctrine-project.org/projects/doctrine-coding-standard/en/11.0/reference/index.html
What are some alternatives?
PHPStan - PHP Static Analysis Tool - discover bugs in your code without running it!
phan - Phan is a static analyzer for PHP. Phan prefers to avoid false-positives and attempts to prove incorrectness rather than correctness.
Rector - Instant Upgrades and Automated Refactoring of any PHP 5.3+ code
PHPCompatibility - PHP Compatibility check for PHP_CodeSniffer
PHP Code Sniffer - PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards.
Qodana - 📝 Source repository of Qodana Help
PHP CS Fixer - A tool to automatically fix PHP Coding Standards issues
laratrust - Handle roles and permissions in your Laravel application
laravel-ide-helper - IDE Helper for Laravel
phpinsights - 🔰 Instant PHP quality checks from your console
laravel-stats - 📈 Get insights about your Laravel or Lumen Project
laravel-dump-server - Bring Symfony's Var-Dump Server to Laravel