Package

Lorisleiva Lody

Load files and classes as lazy collections in Laravel.

Package

lorisleiva/lody

View on GitHub →

Overview

What Lorisleiva Lody does

Lody introduces a way to load files and classes as lazy collections in Laravel, making batch processing and filtering of code elements easier and more efficient.

Developers often face challenges when dealing with large directories of PHP files, requiring efficient ways to load and manipulate classes. Lody addresses this need by transforming directories of code into manageable lazy collections, allowing developers to work with files and classes dynamically based on their requirements.

With Lody, developers can fetch PHP classes from specified paths, applying filters to target non-abstract instances or specific subclasses. This capability streamlines processes such as registration or configuration loading, as demonstrated by features like filtering instances of a class recursively within specified directories.

Lody fits seamlessly into Laravel's ecosystem by utilizing native path and namespace resolution methods, such as PSR-4 class mapping. However, it also extends its utility beyond Laravel by allowing custom base path configurations and class name resolutions, enabling usage in a broader PHP context.

The package is particularly useful for developers who need to scan and manipulate large codebases, whether for autoloading classes, setting up automated processes, or organizing project hierarchy dynamically. Its ability to resolve classes and handle files within and beyond Laravel's structure offers a flexible tool for PHP developers navigating complex application structures.

This overview was generated by AI from the package README and may not reflect the latest release.

Read the full README →

Lorisleiva Lody Related Articles

Laravel Search String image

Laravel Search String

Read article
Organize Laravel Applications With Actions image

Organize Laravel Applications With Actions

Read article
Laravel Actions Package image

Laravel Actions Package

Read article

Let your users buy domains without leaving your app

If your Laravel app gives users a site, a storefront, or a workspace, they’ll eventually want their own domain. The name.com API lets them search, register, and connect one without leaving your product. It’s a clean REST API, so Laravel’s HTTP client is all you need.

Let your users buy domains without leaving your app

PhpStorm

The go-to PHP IDE with extensive out-of-the-box support for Laravel and its ecosystem.

PhpStorm

Acquaint Softtech

Acquaint Softtech offers AI-ready Laravel developers who onboard in 48 hours at $3000/Month with no lengthy sales process and a 100 percent money-back guarantee.

Acquaint Softtech

Shift

Running an old Laravel version? Instant, automated Laravel upgrades and code modernization to keep your applications fresh.

Shift

Kirschbaum

Providing innovation and stability to ensure your web application succeeds.

Kirschbaum

Harpoon: Next generation time tracking and invoicing

The next generation time-tracking and billing software that helps your agency plan and forecast a profitable future.

Harpoon: Next generation time tracking and invoicing