laravel-actions
adr
laravel-actions | adr | |
---|---|---|
17 | 15 | |
2,334 | 1,118 | |
- | - | |
5.2 | 0.0 | |
about 2 months ago | about 2 years ago | |
PHP | HTML | |
MIT License | - |
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.
laravel-actions
-
Laravel Ecommerce Tutorial: Part 7, Product Options
Let's install laravel actions package to help us with crafting actions that we can use anywhere
-
What's the best approach for refactoring my controller into action classes?
First, this is an excellent question. But to answer it, we need to define some terms. Do you mean "action" as in ADR, where the action class is what would have been a controller action method (aka "single-action controller")? Or do you mean "action" as the Laravel folks often use it, a la https://laravelactions.com/ ?
-
Practical Guide: How to Build a Web Scraper with Laravel Actions
I could have accomplished the same result with a simple command. But as I mentioned: "For this project, I decided to experiment with Laravel Actions. It is not required but seems like the right tool for the job.". There is definitely more value in the concept than explained in my brief example.
-
Any tutorial out there on converting a monolith Laravel App to a micro APIs service provider?
Good package for making Actions: https://github.com/lorisleiva/laravel-actions
-
Refactoring to Batched Jobs from Actions - CLI-Driven Development for Large Jobs
https://laravelactions.com/ https://laravel.com/docs/9.x/queues#adding-jobs-to-batches
-
Best boilerplate for Laravel?
As mentioned before, Jetstream has the concept of Actions. This is a "pattern" that has emerged in the Laravel community in the last few years. There is also a nice package to make working with Actions easier: Laravel Actions
-
Registration Form with Multiple Models and Form Request Validation [Question]
I would look into using Laravel Actions, designed to do this.
-
Is Repository Design Patterns Worth it ??
If you have complex business logic or queries that are either too fat for controllers or, especially, you want to re-use in various parts of your app, there are other ways to abstract them. I recently started using Laravel Actions for this, and I love it. You can also use service or utility classes, but I like actions because they help my team keep to the single responsibility principle and write small, refactorable (the real key to good, lasting code) units. The package is also cool because you can use single actions to run the same logic as a controller, a job, a command, etc.
-
Splitting code in MVC pattern
I use plain PHP classes, but there is also a well made package out there, which allows you to queue Actions as well. https://laravelactions.com/
-
Refactoring #2: From controllers to actions
As an extra, one could also work with Spatie's Actions package to make them queueable, or even the full-fledged Laravel Actions package. We kept it simple for now using Plain Old Objects in PHP (POOP).
adr
-
Repositories and their true purpose
This is one of the questions Action Domain Responder seeks to answer. The answer for Actions in ADR is the same answer as for a Controller action method in MVC.
-
What's the best approach for refactoring my controller into action classes?
First, this is an excellent question. But to answer it, we need to define some terms. Do you mean "action" as in ADR, where the action class is what would have been a controller action method (aka "single-action controller")? Or do you mean "action" as the Laravel folks often use it, a la https://laravelactions.com/ ?
-
MVU Architectural Patterns for PHP
With that in mind, MVU strikes me as being a lot like Action Domain Responder. (I've not heard of MVU before.)
-
Any good no framework PHP MYSQL web app in github, I can learn from?
Oh sorry, it means Action Domain Responder, it's a design pattern akin to MVC ( and it's nuances like MVVC ) or DDD. This is the blog of Jones, the person who coined that pattern : http://pmjones.io/adr/
-
Starting new job - Need to hone my PHP Skills
ADR (as opposed to MVC) - direct link - example
-
Vanilla PHP vs PHP Framework
Contra /u/dave8271 below, I think it does matter. There are many different ideas about MVC, and as such it's not a very clear vocabulary term, esp. on the server side. The Action Domain Responder pattern exists to help clarify some of those distinctions.
-
API vs MVC
At first I read this as (my paper on) ADR vs MVC. You may wish to consider the ADR pattern over MVC for an API system.
-
Build your next RESTful API with fully automatic router ! Just install and forget
Ah, thanks for saying! As far as one class per route, it's more in line with Action Domain Responder than with what we usually think of as MVC.
-
Whats MVC ?
This is it: https://github.com/pmjones/adr/blob/master/MVC-MODEL-2.md
-
Laravel or Yii in 2022
cough Action Domain Responder cough
What are some alternatives?
laravel-queueable-action - Queueable actions in Laravel
php-mvc - A simple PHP model-view-controller framework, built step-by-step as part of the "Write PHP like a pro: build an MVC framework from scratch" course on Udemy.
daybreak - Simple timesheets and vacation management for small businesses.
clean-code-php - :bathtub: Clean Code concepts adapted for PHP
pipeline - Supercharged Pipelines for Laravel.
slim4-skeleton - A Slim 4 Skeleton
openlittermap-web - https://opengeospatialdata.springeropen.com/articles/10.1186/s40965-018-0050-y
Mustache - A Mustache implementation in PHP.
react-native - A framework for building native applications using React
routing - Maps an HTTP request to a set of configuration variables
Yii2 - Yii 2: The Fast, Secure and Professional PHP Framework
php-benchmarks - It is a collection of php benchmarks