spatie/php-structure-discoverer
Quickly discover classes, interfaces, enums, and traits in your PHP application that match conditions like implementing an interface, with extra metadata per structure and built-in caching to keep things fast in production.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| spatie/url | 0.91 | Immutable URL parser/builder for PHP. Parse scheme, host, path and query, then fluently transform parts (withHost, withPath, withScheme) and manage query parameters. Supports allowed/sanitized schemes for safer URL handling. | 738 | 751 | 59 | 683K | 0 | 12.5 | 41.0 | MIT | 2 years ago | |
| spatie/shiki-php | 0.91 | Bring Shiki's beautiful syntax highlighting to PHP. A simple static call highlights code using the same language engine as popular code editors, with 100+ languages and themes plus bundled Antlers and Blade support. | 315 | 317 | 34 | 6M | 0 | 19.6 | 59.9 | MIT | 6 months ago | |
| spatie/laravel-visit | 0.91 | Adds a php artisan visit command to quickly hit any route in your Laravel app and inspect the response. Shows colorized HTML or JSON output plus request results, with options like visiting by route name and logging in a user before the request. | 159 | 160 | 9 | 729 | 0 | 11.2 | 10.9 | MIT | 7 months ago | |
| spatie/7to5 | 0.90 | Abandoned. Converts PHP 7.0 code to PHP 5, useful when developing on PHP 7 but deploying to PHP 5. Provides a CLI to convert entire directories and rewrites features like anonymous classes, type hints, return types, and null coalescing. | 177 | 175 | 32 | 47 | 0 | 2.6 | 1.0 | MIT | 8 years ago | |
| spatie/lighthouse-php | 0.90 | Run Google Lighthouse audits from PHP. Test any URL and retrieve category scores (performance, accessibility, SEO, etc.) and individual audit details. Configure headers, user agent, categories, CPU throttling, and max load wait, then run and parse results. | 270 | 271 | 31 | 20K | 0 | 10.6 | 26.1 | MIT | 11 months ago | |
| spatie/php-cloneable | 0.90 | Trait for PHP 8.1+ that makes objects with readonly properties cloneable. Safely “clone with changes” by copying an object while overriding readonly fields—handy until PHP gets native clone-with support. | 97 | 98 | 7 | 213K | 0 | 1.6 | 46.1 | MIT | 2 years ago | |
| spatie/php-type-graph | 0.90 | Build a graph of all PHP types in your project. Analyze classes, interfaces, enums, and their relationships to understand your codebase structure, dependencies, and type usage. Useful for architecture insights, tooling, and visualization (WIP). | 10 | 10 | 4 | 0 | 0 | 0.7 | — | MIT | 2 years ago | |
| spatie/test-time | 0.90 | Control time in tests with Spatie TestTime—freeze or advance Carbon-based timestamps dynamically for time-sensitive assertions. Simplify testing date-dependent logic by manually adjusting time without altering real-world clocks. Works seamlessly with Carbon’s methods like addYear(), subDay(), or cus... | 208 | 208 | 9 | 245K | 0 | 5.2 | 42.4 | MIT | 2 years ago | |
| spatie/laravel-auto-discoverer | 0.87 | Quickly discover classes, interfaces, enums, and traits in your PHP app that meet certain conditions—such as classes implementing a given interface. Includes built-in caching to keep discovery fast in production. | 179 | 179 | 18 | 5 | 1 | 22.1 | 0.2 | MIT | 4 months ago | |
| spatie/laravel-package-tools | 0.86 | PackageServiceProvider base class for Laravel packages that simplifies registering config files, migrations, views, translations, routes, commands, assets, and view components, with publishable resources and a configurable install command. | 951 | 963 | 164 | 15M | 0 | 37.4 | 64.0 | MIT | 1 month ago | |
| spatie/piper | 0.86 | Piper is a pipe operator-first PHP utility library that ports Laravel’s array and string helpers into standalone functions. Chain filter, map, join, lower, replace, and more with the |> operator, mixing array and string primitives in one clean pipeline. | 57 | 57 | 2 | 548 | 0 | 13.6 | 15.6 | MIT | 4 months ago | |
| spatie/typed | 0.85 | Userland improved PHP type system with type inference and runtime checking: generics, union types, typed collections/lists, tuples, and structs. Proof-of-concept package from Spatie to add stronger type guarantees without language-level support. | 316 | 317 | 15 | 18 | 0 | 1.9 | 0.2 | MIT | 5 years ago | |
| thecodingmachine/discovery | 0.85 | Discover PHP classes implementing a given interface by scanning your Composer classmap at runtime. Thecodingmachine/Discovery makes building plugin systems and auto-registering services simple, with no manual configuration or boilerplate required. | 101 | 102 | 13 | 1K | 3 | 1.8 | 1.1 | — | 4 years ago | |
| spatie/macroable | 0.85 | Add methods to any class at runtime with Spatie’s Macroable trait. Register macros with closures or callables and call them like native methods; macros are bound to the class instance for access to $this. Inspired by Laravel’s Macroable implementation. | 731 | 741 | 24 | 3M | 0 | 10.6 | 51.0 | MIT | 9 months ago | |
| mehedi250/laravel-structure-kit | 0.84 | A browser-based scaffolding panel for Laravel that generates models, controllers, services, repositories, and migrations in one click. No terminal needed—open the UI, pick your components, and hit Generate to build a clean layered structure fast. | 9 | 9 | 0 | 5 | 0 | 13.8 | 2.7 | MIT | 4 months ago | |
| spatie/packagist-api | 0.84 | Spatie's PHP package makes it easy to search and fetch package info from the Packagist API. Pass a Guzzle client and URL generator to the client, then list package names by type or vendor, fetch popular packages with pagination, and more. | 132 | 136 | 22 | 208K | 0 | 19.7 | 49.7 | MIT | 3 months ago | |
| puli/discovery | 0.83 | Puli Discovery is a PHP library for locating and managing resources across packages. It provides a discovery API to register resource bindings, find files by type or path, and integrate resource lookup into Puli-based applications. | 11 | — | 10 | — | 0 | 0.4 | — | MIT | 10 years ago |
|
| spatie/laravel-openapi-cli | 0.83 | Turn any OpenAPI spec into dedicated Laravel artisan commands with typed options for path params, query params, and request bodies. Add auth, caching, retries, and error handling, or pair with Laravel Zero to build standalone CLI tools. | 42 | 42 | 4 | 172 | 0 | 19.2 | 11.0 | MIT | 2 months ago | |
| spatie/fractalistic | 0.83 | Developer-friendly wrapper around League Fractal to transform API data with less boilerplate. Build resources, apply transformers, includes, and output arrays with a fluent API or one-liner syntax. Great for PHP projects; Laravel users may prefer laravel-fractal. | 383 | 385 | 32 | 429K | 0 | 17.2 | 44.3 | MIT | 8 months ago | |
| league/construct-finder | 0.83 | Locate PHP code constructs (classes, interfaces, traits, enums) within one or more directories. Returns construct objects or just names, with type-specific finders and support for excluding files via simple wildcard patterns. | 44 | 44 | 5 | 33K | 0 | 0.4 | 39.5 | — | — |
How can I help you explore Laravel packages today?