Skip to content

Commit

Permalink
Adjust package requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
Vectorial1024 committed Jan 26, 2025
1 parent ae22e6f commit a2da0e5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Utilize Laravel Processes to run PHP code asynchronously, as if using Laravel Co
## What really is this?
[Laravel Processes](https://laravel.com/docs/10.x/processes) was first introduced in Laravel 10. This library wraps around `Process::start()` to let you execute code in the background to achieve async, albeit with some caveats:
- You may only execute PHP code
- Restrictions from `laravel/serializable-closure` apply (see [their README](https://github.com/laravel/serializable-closure))
- Restrictions from `opis/closure` apply (see [their README](https://github.com/opis/closure))
- Hands-off execution: no built-in result-checking, check the results yourself (e.g. via database, file cache, etc)

This library internally uses an Artisan command to run the async code, which is similar to Laravel 11 [Concurrency](https://laravel.com/docs/11.x/concurrency).
Expand Down
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
"require": {
"php": "^8.1",
"illuminate/support": "^10.0|^11.0",
"laravel/serializable-closure": "^2.0",
"loophp/phposinfo": "^1.8",
"opis/closure": "^4.0"
},
Expand All @@ -51,5 +50,8 @@
"Vectorial1024\\LaravelProcessAsync\\ProcessAsyncServiceProvider"
]
}
},
"config": {
"sort-packages": true
}
}
1 change: 0 additions & 1 deletion src/AsyncTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
use Illuminate\Support\Facades\Process;
use Illuminate\Support\Str;
use InvalidArgumentException;
use Laravel\SerializableClosure\SerializableClosure;
use LogicException;
use loophp\phposinfo\OsInfo;
use RuntimeException;
Expand Down

0 comments on commit a2da0e5

Please sign in to comment.