foxws/laravel-algos
foxws/laravel-algos is a Laravel package that provides reusable algorithm implementations and helpers for PHP applications. It offers a lightweight, package-based way to integrate common algorithmic tasks into Laravel projects, helping keep algorithm-focused code organized and easy to reuse.
composer require foxws/laravel-algos. The package auto-discovers its service provider.php artisan vendor:publish --tag="laravel-algos-config". Check config/algos.php for registered algorithm mappings.src/ directory. Algorithm classes are typically under Foxws\Algos\Algorithms or exposed via an Algos facade.use Foxws\Algos\Facades\Algos;
$sorted = Algos::sort($items, 'quick');
Or resolve a concrete algorithm class via the container:
use Foxws\Algos\Algorithms\QuickSort;
public function index(QuickSort $sorter) {
return $sorter->sort($data);
}
boost or resources/boost directory (or check the package’s composer.json extra section) to load the skill into your AI assistant context.Algos:: for ad-hoc runs, but prefer DI in application code.Pipeline when you need multiple processing steps (e.g. filter → sort → paginate).Collection results or inside query scopes when you need custom ordering/grouping that SQL cannot express efficiently:
$users = User::all();
$ranked = Algos::rank($users, 'relevance');
config/algos.php under the appropriate key. This is the main extension point.Algos::shouldReceive(...)..boost/skills/) so assistants generate correct usage examples.composer.json ("foxws/laravel-algos": "^0.3") and review changelogs before upgrading.dd() or Laravel Telescope on algorithm inputs/outputs. If a facade call fails, check that the service provider is registered (it should be auto-discovered) and that the algorithm key exists in config.How can I help you explore Laravel packages today?