{"id":19300050,"url":"https://github.com/kirschbaum-development/mutable-listeners","last_synced_at":"2025-04-22T10:31:16.985Z","repository":{"id":94888044,"uuid":"308776583","full_name":"kirschbaum-development/mutable-listeners","owner":"kirschbaum-development","description":null,"archived":false,"fork":false,"pushed_at":"2024-01-16T01:30:11.000Z","size":73,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-01-17T07:14:12.559Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/kirschbaum-development.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-10-31T00:56:24.000Z","updated_at":"2024-01-17T07:14:12.560Z","dependencies_parsed_at":null,"dependency_job_id":"f95bf0bd-e49c-4608-96ca-07874afff7a7","html_url":"https://github.com/kirschbaum-development/mutable-listeners","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kirschbaum-development%2Fmutable-listeners","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kirschbaum-development%2Fmutable-listeners/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kirschbaum-development%2Fmutable-listeners/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kirschbaum-development%2Fmutable-listeners/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kirschbaum-development","download_url":"https://codeload.github.com/kirschbaum-development/mutable-listeners/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223893052,"owners_count":17220834,"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":[],"created_at":"2024-11-09T23:13:32.239Z","updated_at":"2024-11-09T23:13:32.879Z","avatar_url":"https://github.com/kirschbaum-development.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Mutable Listeners\n\nA package for unregistering Listeners from Events in Laravel!\n\n## Installation\n\nYou can install this package via composer:\n\n```bash\ncomposer require kirschbaum-development/mutable-listeners\n```\n\n## Usage\n`Halloween` is full of `Tricks` and `Treats`:\n\n```\nclass EventServiceProvider extends ServiceProvider\n{\n    protected $listen = [\n        Halloween::class =\u003e [\n            Tricks::class,\n            Treats::class,\n        ]\n    ];\n}\n```\n\nWhat if you could could get all the chocolatery without any of the chicanery?\n\n### Event Facade\n```php\nEvent::mute(Halloween::class, Tricks::class);\n```\n\n### Mutable Trait\nA trait can also be added to a `Listener` for simplified muting:\n```php\nuse KirschbaumDevelopment\\MutableListeners\\Mutable;\n\nclass Tricks\n{\n    use Mutable;\n\n    // ...\n}\n\nTricks::mute(Halloween::class);\n```\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n### Security\n\nIf you discover any security related issues, please email justin@kirschbaumdevelopment.com or nathan@kirschbaumdevelopment.com instead of using the issue tracker.\n\n## Credits\n\n- [Justin Seliga](https://github.com/jrseliga)\n- [Bogdan Cismariu](https://github.com/bcismariu)\n\n## Sponsorship\n\nDevelopment of this package is sponsored by Kirschbaum Development Group, a developer driven company focused on problem solving, team building, and community. Learn more [about us](https://kirschbaumdevelopment.com/team) or [join us](https://careers.kirschbaumdevelopment.com/careers)!\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%2Fkirschbaum-development%2Fmutable-listeners","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkirschbaum-development%2Fmutable-listeners","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkirschbaum-development%2Fmutable-listeners/lists"}