- What is laravelha/support used for?
- laravelha/support is a lightweight Laravel utility package that bundles support classes, traits, macros, and convenience functions. It is designed to reduce boilerplate and keep everyday application code cleaner and more maintainable. It integrates with Laravel's service container and facades rather than replacing core framework features.
- How do I install laravelha/support with Composer?
- Install the package with composer require laravelha/support. If the package does not use Laravel auto-discovery, add its service provider to the providers array in config/app.php. Check the repository README for the exact provider class name and any post-install steps.
- Which Laravel and PHP versions does laravelha/support support?
- The supplied overview does not include an explicit Laravel or PHP version matrix, so inspect the illuminate/* and php constraints in composer.json before adopting. Because the current release is 1.0.4, confirm that the range is actually tested against your target major rather than assuming broad compatibility. A package that supports only the latest major becomes a forced-upgrade dependency.
- Does laravelha/support support Laravel package auto-discovery?
- Laravel 5.5 and later auto-discover service providers declared under extra.laravel in composer.json. The technical evaluation flags this as something to confirm for laravelha/support, since missing auto-discovery means a manual entry in config/app.php. Auto-discovery is the default expectation for modern Laravel packages.
- Does laravelha/support publish config files, views, or translations?
- The overview describes helper classes, traits, macros, and functions but does not state whether the package publishes config, views, translations, or migrations. After installing, run php artisan vendor:publish and review what appears before committing anything. Every published asset becomes an upgrade-time merge obligation.
- Does laravelha/support add database migrations or change my schema?
- No database migrations or schema changes are mentioned in the package overview, which points to a low-risk, container-and-Eloquent-only integration. Still verify by checking the package source for a database or migrations directory before installing. Anything that alters existing tables or requires a backfill should be treated as a data-migration project.
- Is laravelha/support safe to use in production?
- Production safety depends on the integration surface: helper classes and macros are low risk, while globally registered middleware or driver overrides carry a higher blast radius. This is an early 1.x release at 1.0.4, so pin the version and review diffs before patch or minor upgrades. Confirm the maintenance signal and test coverage before putting it on a critical path.
- How do I test code that uses laravelha/support helpers?
- Because the package is mostly traits, macros, and helper functions, most logic can be tested directly in a standard Laravel TestCase. Boot the application so any service-provider-registered macros or bindings are available, or use Orchestra Testbench for package-level tests. If a facade is shipped, it can be swapped or mocked in the container for isolated tests.
- How do I remove laravelha/support from a Laravel application?
- Removal is typically composer remove laravelha/support, followed by deleting any manual provider or facade entry in config/app.php. Also remove published config, view, or translation files if you published them. The real cost is the number of call sites using its helpers, so estimate that before adoption.
- Is laravelha/support actively maintained, and what are the alternatives?
- The supplied materials show release 1.0.4 with empty release notes, so check commit cadence, release cadence, maintainer count, and the open-issue trend directly on the repository. For many use cases Laravel's built-in Str, Arr, and Collection helpers already cover the need, so compare before adding a dependency. A package on the critical path with one maintainer is a standing liability.