{"id":13828044,"url":"https://github.com/spatie/laravel-stubs","last_synced_at":"2025-05-14T21:09:22.359Z","repository":{"id":43396885,"uuid":"249067991","full_name":"spatie/laravel-stubs","owner":"spatie","description":"The default Laravel stubs modified to our liking","archived":false,"fork":false,"pushed_at":"2025-02-20T11:10:53.000Z","size":105,"stargazers_count":244,"open_issues_count":0,"forks_count":40,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-14T02:58:19.626Z","etag":null,"topics":["development","laravel","php","stubs"],"latest_commit_sha":null,"homepage":"https://spatie.be/open-source","language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/spatie.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"custom":"https://spatie.be/open-source/support-us"}},"created_at":"2020-03-21T21:57:52.000Z","updated_at":"2025-04-04T04:41:02.000Z","dependencies_parsed_at":"2024-01-18T05:11:20.545Z","dependency_job_id":"096ee3c2-e504-4a82-9e5e-b077acdaad79","html_url":"https://github.com/spatie/laravel-stubs","commit_stats":{"total_commits":95,"total_committers":23,"mean_commits":4.130434782608695,"dds":0.5368421052631579,"last_synced_commit":"66aecc1d86948d67a8ae089f66ba5fa487e4aac4"},"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spatie%2Flaravel-stubs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spatie%2Flaravel-stubs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spatie%2Flaravel-stubs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spatie%2Flaravel-stubs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spatie","download_url":"https://codeload.github.com/spatie/laravel-stubs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248813789,"owners_count":21165633,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["development","laravel","php","stubs"],"created_at":"2024-08-04T09:02:29.813Z","updated_at":"2025-04-14T02:58:25.546Z","avatar_url":"https://github.com/spatie.png","language":"PHP","funding_links":["https://spatie.be/open-source/support-us"],"categories":["PHP"],"sub_categories":[],"readme":"# Opinionated Laravel stubs\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/spatie/laravel-stubs.svg?style=flat-square)](https://packagist.org/packages/spatie/laravel-stubs)\n[![run-tests](https://github.com/spatie/laravel-stubs/actions/workflows/run-tests.yml/badge.svg)](https://github.com/spatie/laravel-stubs/actions/workflows/run-tests.yml)\n[![Total Downloads](https://img.shields.io/packagist/dt/spatie/laravel-stubs.svg?style=flat-square)](https://packagist.org/packages/spatie/laravel-stubs)\n\nThis repo contains opinionated versions of the Laravel stubs. The most notable changes are:\n\n- migrations don't have a `down` function\n- controllers don't extend a base controller\n- none of the model attributes are guarded\n- use return type hints where possible\n- most docblocks have been removed\n\n## Support us\n\n[\u003cimg src=\"https://github-ads.s3.eu-central-1.amazonaws.com/laravel-stubs.jpg?t=1\" width=\"419px\" /\u003e](https://spatie.be/github-ad-click/laravel-stubs)\n\nWe invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).\n\nWe highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).\n\n## Exploring laravel-stubs\n\nIn this [video on YouTube](https://www.youtube.com/watch?v=I-y-VSOL93I), Povilas Korop explores our package.\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require spatie/laravel-stubs --dev\n```\n\nIf you want to keep your stubs up to date with every update, add this composer hook to your composer.json file:\n\n```json\n\"scripts\": {\n    \"post-update-cmd\": [\n        \"@php artisan spatie-stub:publish --force\"\n    ]\n}\n```\n\n## Usage\n\nYou can publish the stubs using this command:\n\n```bash\nphp artisan spatie-stub:publish\n```\n\n## Testing\n\n``` bash\ncomposer test\n```\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/CONTRIBUTING.md) for details.\n\n## Security\n\nIf you've found a bug regarding security please mail [security@spatie.be](mailto:security@spatie.be) instead of using the issue tracker.\n\n## Credits\n\n- [Freek Van der Herten](https://github.com/freekmurze)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspatie%2Flaravel-stubs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspatie%2Flaravel-stubs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspatie%2Flaravel-stubs/lists"}