food-order-gh-action-test
food-order-app-laravel-tdd
food-order-gh-action-test | food-order-app-laravel-tdd | |
---|---|---|
1 | 2 | |
0 | 8 | |
- | - | |
10.0 | 10.0 | |
over 1 year ago | over 2 years ago | |
PHP | PHP | |
- | - |
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.
food-order-gh-action-test
-
Laravel code-quality tools
In the above workflow, we used the --report option and that requires us to have the ENLIGHTN_USERNAME and ENLIGHTN_API_TOKEN in our environment variables. Since we can't directly add them to our .env file for security reasons, we need to use Actions Secrets. You can add secrets on this page: https://github.com/yourGitHubUsername/yourRepoName/settings/secrets/actions. Click on the New repository secret button to add your secret:
food-order-app-laravel-tdd
-
Laravel code-quality tools
git clone https://github.com/anchetaWern/food-order-app-laravel-tdd cd food-order-app-laravel-tdd git checkout tdd
-
Building a Laravel App with TDD
There’s still a lot to learn if you want to be able to write your projects using TDD. A big part of this is mocking, which is where you swap out a fake implementation of specific functionality on your tests so that it’s easier to run. Laravel already includes fakes for common functionality provided by the framework. This includes storage fake, queue fake, and bus fake, among others. You can read the official documentation to learn more about it. You can also view the source code of the app on its GitHub repo.
What are some alternatives?
PHP-CS-Fixer - A tool to automatically fix PHP Coding Standards issues [Moved to: https://github.com/PHP-CS-Fixer/PHP-CS-Fixer]
larastan - ⚗️ Adds code analysis to Laravel improving developer productivity and code quality. [Moved to: https://github.com/larastan/larastan]
laravel-pint-action - GitHub Action for Laravel Pint
starter-workflows - Accelerating new GitHub Actions workflows
sublime-phpcs - 🔍 PHP CodeSniffer, PHP Coding Standard Fixer, Linter, and Mess Detector Support for Sublime Text
psalm-plugin-laravel - A Psalm plugin for Laravel
enlightn - Your performance & security consultant, an artisan command away.
PHP Code Sniffer - PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards.
LSP - Client implementation of the Language Server Protocol for Sublime Text
ale - Check syntax in Vim/Neovim asynchronously and fix files, with Language Server Protocol (LSP) support
Psalm - A static analysis tool for finding errors in PHP applications