{"id":22910337,"url":"https://github.com/rokde/laravel-configuration-objectified","last_synced_at":"2025-02-27T22:43:51.007Z","repository":{"id":174946057,"uuid":"653065641","full_name":"rokde/laravel-configuration-objectified","owner":"rokde","description":"Objectified version of laravel configuration files","archived":false,"fork":false,"pushed_at":"2025-01-27T12:31:29.000Z","size":74,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-27T13:42:34.720Z","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/rokde.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-13T10:43:09.000Z","updated_at":"2025-01-27T12:31:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"0fc07a47-7fb9-4296-9654-70bb69528d2c","html_url":"https://github.com/rokde/laravel-configuration-objectified","commit_stats":null,"previous_names":["rokde/laravel-configuration-objectified"],"tags_count":3,"template":false,"template_full_name":"spatie/package-skeleton-laravel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rokde%2Flaravel-configuration-objectified","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rokde%2Flaravel-configuration-objectified/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rokde%2Flaravel-configuration-objectified/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rokde%2Flaravel-configuration-objectified/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rokde","download_url":"https://codeload.github.com/rokde/laravel-configuration-objectified/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241070110,"owners_count":19904317,"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-12-14T03:43:04.278Z","updated_at":"2025-02-27T22:43:50.977Z","avatar_url":"https://github.com/rokde.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Objectified version of laravel configuration files\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/rokde/laravel-configuration-objectified.svg?style=flat-square)](https://packagist.org/packages/rokde/laravel-configuration-objectified)\n[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/rokde/laravel-configuration-objectified/run-tests.yml?branch=main\u0026label=tests\u0026style=flat-square)](https://github.com/rokde/laravel-configuration-objectified/actions?query=workflow%3Arun-tests+branch%3Amain)\n[![GitHub Code Style Action Status](https://img.shields.io/github/actions/workflow/status/rokde/laravel-configuration-objectified/fix-php-code-style-issues.yml?branch=main\u0026label=code%20style\u0026style=flat-square)](https://github.com/rokde/laravel-configuration-objectified/actions?query=workflow%3A\"Fix+PHP+code+style+issues\"+branch%3Amain)\n[![Total Downloads](https://img.shields.io/packagist/dt/rokde/laravel-configuration-objectified.svg?style=flat-square)](https://packagist.org/packages/rokde/laravel-configuration-objectified)\n\nThis is where your description should go. Limit it to a paragraph or two. Consider adding a small example.\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require rokde/laravel-configuration-objectified\n```\n\n## Usage\n\nGo to your `config` folder in your laravel project and replace the `return []` statement with this (e.g. `app.php`):\n```php\n\u003c?php\n\nuse Rokde\\LaravelConfigurationObjectified\\Config\\AppConfig;\n\nreturn AppConfig::makeDefault()\n    -\u003etoArray();\n```\n\nIf you want to configure something you can use typed methods. For example changing the locale in `app.php` will result in this:\n```php\n\u003c?php\n\nuse Rokde\\LaravelConfigurationObjectified\\Config\\AppConfig;\n\nreturn AppConfig::makeDefault()\n    -\u003elocale('de')\n    -\u003etoArray();\n```\n\nThese are the following Config classes with their corresponding config file\n\n| file             | Config                                |\n|------------------|---------------------------------------|\n| app.php          | `AppConfig::makeDefault()-\u003etoArray()` |\n| auth.php         | `AuthConfig::makeDefault()-\u003etoArray()` |\n| broadcasting.php | `BroadcastingConfig::makeDefault()-\u003etoArray()` |\n| cache.php        | `CacheConfig::makeDefault()-\u003etoArray()` |\n| cors.php         | `CorsConfig::makeDefault()-\u003etoArray()` |\n| database.php     | `DatabaseConfig::makeDefault()-\u003etoArray()` |\n| filesystem.php   | `FilesystemsConfig::makeDefault()-\u003etoArray()` |\n| hashing.php      | `HashingConfig::makeDefault()-\u003etoArray()` |\n| logging.php      | `LoggingConfig::makeDefault()-\u003etoArray()` |\n| mail.php         | `MailConfig::makeDefault()-\u003etoArray()` |\n| queue.php        | `QueueConfig::makeDefault()-\u003etoArray()` |\n| sanctum.php      | `SanctumConfig::makeDefault()-\u003etoArray()` |\n| services.php     | `ServicesConfig::makeDefault()-\u003etoArray()` |\n| session.php      | `SessionConfig::makeDefault()-\u003etoArray()` |\n| view.php         | `ViewConfig::makeDefault()-\u003etoArray()` |\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](CONTRIBUTING.md) for details.\n\n## Security Vulnerabilities\n\nPlease review [our security policy](../../security/policy) on how to report security vulnerabilities.\n\n## Credits\n\n- [Robert Kummer](https://github.com/rokde)\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%2Frokde%2Flaravel-configuration-objectified","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frokde%2Flaravel-configuration-objectified","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frokde%2Flaravel-configuration-objectified/lists"}