### Install laravel-zero-package-scaffold with Composer Source: https://github.com/jeffersongoncalves/laravel-zero-package-scaffold/blob/main/README.md Install the package as a dependency. Requires PHP ^8.2 and has no runtime dependencies. ```bash composer require jeffersongoncalves/laravel-zero-package-scaffold ``` -------------------------------- ### Run tests with Composer Source: https://github.com/jeffersongoncalves/laravel-zero-package-scaffold/blob/main/README.md Runs the test suite for the package. ```bash composer test ``` -------------------------------- ### Use Namespaces class to resolve slug casing Source: https://github.com/jeffersongoncalves/laravel-zero-package-scaffold/blob/main/README.md Shows how to use the Namespaces class to read the configuration file, resolve a slug to its configured casing, fall back to studly conversion, and retrieve the entire map. The file path defaults to ~/.package/vendornamespace.json and can be overridden with the PACKAGE_NAMESPACES_FILE environment variable. ```php use JeffersonGoncalves\LaravelZero\PackageScaffold\Namespaces; Namespaces::file(); // ~/.package/vendornamespace.json Namespaces::segment('jeffersongoncalves'); // JeffersonGoncalves (from the file) Namespaces::segment('cep-field'); // CepField (studly fallback) Namespaces::all(); // the whole map, lowercased keys ``` -------------------------------- ### Namespace casing configuration file Source: https://github.com/jeffersongoncalves/laravel-zero-package-scaffold/blob/main/README.md Configuration file that maps lowercase slugs to their desired StudlyCase casing. The file is read by the Namespaces class and can be overridden with the PACKAGE_NAMESPACES_FILE environment variable. ```json { "jeffersongoncalves": "JeffersonGoncalves", "jeffersonsimaogoncalves": "JeffersonSimaoGoncalves", "posthog": "PostHog" } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.