neronmoon/scriptsdev
Laravel package to manage and run custom development scripts—generate commands, automate tasks, and organize project utilities from a clean structure. Helpful for scaffolding, repetitive workflows, and keeping team scripts consistent across environments.
neronmoon/scriptsdev) appears to be a Composer directive for managing development scripts (e.g., post-install, post-update, post-autoload-dump). It likely enables custom script execution hooks during Composer operations, which could be useful for:
php artisan commands, linting, or testing).post-install-cmd or post-update-cmd scripts but with more granular control (e.g., conditional execution, environment-specific hooks).post-install scripts in composer.json).scriptsdev to run php artisan optimize after composer install.| Risk Area | Severity | Mitigation Strategy |
|---|---|---|
| Deprecated APIs | High | Override or patch scripts manually if needed. |
| Lack of Maintenance | Medium | Fork the repo or replace with alternatives. |
| Undefined Behavior | Medium | Start with non-critical scripts (e.g., logging). |
| CI/CD Disruption | High | Test in staging before production rollout. |
| Security Risks | Low | MIT license is permissive; audit scripts. |
post-install-cmd?
scriptsdev offer conditional logic (e.g., if (env('APP_ENV') === 'local')) or parallel script execution?php artisan migrate --seed post-install).composer.json scripts (e.g., post-install-cmd).scriptsdev.composer dump-autoload) with scriptsdev.php artisan serve).composer run-script).| Component | Compatibility Risk | Workaround |
|---|---|---|
| PHP 8.x | High | Use platform-check or polyfills. |
| Laravel 9/10 | Medium | Test with laravel/framework shims. |
| Composer 2.x | Medium | Downgrade to Composer 1.x if needed. |
| Windows/Linux | Low | Path handling may vary; test both. |
composer.json and .env.composer require neronmoon/scriptsdev --dev
scriptsdev directives to composer.json:
"scripts-dev": {
"post-install": [
"php artisan cache:clear",
"npm install"
]
}
composer install and verify scripts execute.composer --verbose install).composer.json).CONTRIBUTING.md or wiki."scripts-dev": {
"post-install": ["php artisan script:run --log"]
}
--verbose).storage/ or bootstrap/cache/).composer why-not <package> to debug dependencies.composer dump-autoload) may slow down composer install.composer --parallel (if supported).vendor/ and node_modules/ to avoid redundant script runs.| Failure Scenario | Impact | Recovery |
|---|---|---|
Script crashes during composer install |
Blocked dev environments | Roll back to manual scripts. |
| PHP version incompatibility | Silent failures | Downgrade PHP or fork the package. |
| Composer hook conflicts | Overwritten scripts | Disable scriptsdev temporarily. |
| Network timeouts (e.g., npm install) | Hanging installs | Add retries or timeouts. |
composer.json scripts.How can I help you explore Laravel packages today?