{"id":19499481,"url":"https://github.com/omatech/laravel-statusable","last_synced_at":"2025-04-25T22:33:59.749Z","repository":{"id":57031140,"uuid":"177178306","full_name":"omatech/laravel-statusable","owner":"omatech","description":"Tired of repeating the status control of your models again and again? Well, here it's already done.","archived":false,"fork":false,"pushed_at":"2019-11-06T09:43:25.000Z","size":14,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-08-19T02:53:26.076Z","etag":null,"topics":["laravel","laravel-package","status","status-history"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"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/omatech.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-22T16:53:56.000Z","updated_at":"2020-02-19T13:45:29.000Z","dependencies_parsed_at":"2022-08-23T17:40:56.282Z","dependency_job_id":null,"html_url":"https://github.com/omatech/laravel-statusable","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omatech%2Flaravel-statusable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omatech%2Flaravel-statusable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omatech%2Flaravel-statusable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omatech%2Flaravel-statusable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/omatech","download_url":"https://codeload.github.com/omatech/laravel-statusable/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224019619,"owners_count":17242176,"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":["laravel","laravel-package","status","status-history"],"created_at":"2024-11-10T22:04:31.143Z","updated_at":"2024-11-10T22:04:31.968Z","avatar_url":"https://github.com/omatech.png","language":"PHP","readme":"# Laravel Statusable\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/omatech/laravel-statusable.svg?style=flat-square)](https://packagist.org/packages/omatech/laravel-statusable)\n[![Total Downloads](https://img.shields.io/packagist/dt/omatech/laravel-statusable.svg?style=flat-square)](https://packagist.org/packages/omatech/laravel-statusable)\n\nTired of repeating the status control of your models again and again? Well, here it's already done.\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require omatech/laravel-statusable\n```\n\n## Setup\n\n``` bash\n\nphp artisan vendor:publish --tag=laravel-statusable-publish\n\n```\n\n## Usage\n\nJust use ```Statusable``` trait in your models to obtain the current status or the status history.\n\n``` php\n\nuse Omatech\\LaravelStatusable\\App\\Traits\\Statusable;\n\n```\n\nTo add an entry to history use the add method from ```StatusHistory``` model. Example:\n\n``` php\n\nStatusHistory::add('status-name', 'model-instance', 'releated-model', 'guard');\n\n```\n\n### Testing\n\n``` bash\ncomposer test\n```\n\n### Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n### Security\n\nIf you discover any security related issues, please email apons@omatech.com instead of using the issue tracker.\n\n## Credits\n\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomatech%2Flaravel-statusable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fomatech%2Flaravel-statusable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomatech%2Flaravel-statusable/lists"}