{"id":15698212,"url":"https://github.com/rawilk/laravel-casters","last_synced_at":"2025-05-06T21:07:36.833Z","repository":{"id":56937818,"uuid":"296632240","full_name":"rawilk/laravel-casters","owner":"rawilk","description":"A collection of custom casts for Laravel.","archived":false,"fork":false,"pushed_at":"2025-02-25T19:20:11.000Z","size":182,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-06T21:07:23.764Z","etag":null,"topics":["cast","encrypter-cast","password-cast"],"latest_commit_sha":null,"homepage":"https://randallwilk.dev/docs/laravel-casters","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/rawilk.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"rawilk"}},"created_at":"2020-09-18T13:41:41.000Z","updated_at":"2025-02-25T19:20:15.000Z","dependencies_parsed_at":"2024-04-29T19:29:45.864Z","dependency_job_id":"a0d1be11-d9b7-4d43-8f75-af464c976b2c","html_url":"https://github.com/rawilk/laravel-casters","commit_stats":{"total_commits":80,"total_committers":4,"mean_commits":20.0,"dds":"0.22499999999999998","last_synced_commit":"0c546c6f53549f001199288ee06289172686fbde"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":"rawilk/package-skeleton-laravel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rawilk%2Flaravel-casters","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rawilk%2Flaravel-casters/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rawilk%2Flaravel-casters/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rawilk%2Flaravel-casters/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rawilk","download_url":"https://codeload.github.com/rawilk/laravel-casters/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252769420,"owners_count":21801378,"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":["cast","encrypter-cast","password-cast"],"created_at":"2024-10-03T19:23:53.166Z","updated_at":"2025-05-06T21:07:36.817Z","avatar_url":"https://github.com/rawilk.png","language":"PHP","funding_links":["https://github.com/sponsors/rawilk"],"categories":[],"sub_categories":[],"readme":"# Casts for Laravel\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/rawilk/laravel-casters.svg?style=flat-square)](https://packagist.org/packages/rawilk/laravel-casters)\n![Tests](https://github.com/rawilk/laravel-casters/workflows/Tests/badge.svg?style=flat-square)\n[![Total Downloads](https://img.shields.io/packagist/dt/rawilk/laravel-casters.svg?style=flat-square)](https://packagist.org/packages/rawilk/laravel-casters)\n[![PHP from Packagist](https://img.shields.io/packagist/php-v/rawilk/laravel-casters?style=flat-square)](https://packagist.org/packages/rawilk/laravel-casters)\n[![License](https://img.shields.io/github/license/rawilk/laravel-casters?style=flat-square)](https://github.com/rawilk/laravel-casters/blob/main/LICENSE.md)\n\n![Social image](https://banners.beyondco.de/Casts%20for%20Laravel.png?theme=light\u0026packageManager=composer+require\u0026packageName=rawilk%2Flaravel-casters\u0026pattern=architect\u0026style=style_1\u0026description=A+collection+of+custom+casts+for+Laravel.\u0026md=1\u0026showWatermark=0\u0026fontSize=100px\u0026images=check)\n\nCasts for Laravel is a collection of custom class casts for Laravel Eloquent Models. This package allows you to quickly\nand easily add casts for names and hashing passwords on your user models.\n\n```php\nprotected $casts = [\n    // Hashes the value when assigning to `$model-\u003epassword`.\n    // Note: Password cast is now deprecated. Use Laravel's hash cast instead.\n    'password' =\u003e Password::class,\n\n    // Provides utilities for manipulating a name\n    'name' =\u003e Name::class,\n];\n```\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require rawilk/laravel-casters\n```\n\n## Documentation\n\nFor documentation, please refer to: https://randallwilk.dev/docs/laravel-casters\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](.github/CONTRIBUTING.md) for details.\n\n## Security\n\nPlease review [my security policy](.github/SECURITY.md) on how to report security vulnerabilities.\n\n## Credits\n\n- [Randall Wilk](https://github.com/rawilk)\n- [All Contributors](../../contributors)\n\n## Alternatives\n\nSome alternatives to this package include:\n\n- [crudly/encrypted](https://github.com/Crudly/Encrypted)\n- [watson/nameable](https://github.com/dwightwatson/nameable)\n\n## Disclaimer\n\nThis package is not affiliated with, maintained, authorized, endorsed or sponsored by Laravel or any of its affiliates.\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%2Frawilk%2Flaravel-casters","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frawilk%2Flaravel-casters","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frawilk%2Flaravel-casters/lists"}