{"id":36988663,"url":"https://github.com/hamoda-dev/configure","last_synced_at":"2026-01-13T23:26:48.005Z","repository":{"id":62514331,"uuid":"284631570","full_name":"hamoda-dev/configure","owner":"hamoda-dev","description":"PHP Configuration Libaray","archived":false,"fork":false,"pushed_at":"2021-02-26T15:20:29.000Z","size":4593,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-19T22:53:07.551Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hamoda-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-03T07:21:44.000Z","updated_at":"2021-02-22T10:20:55.000Z","dependencies_parsed_at":"2022-11-02T13:15:54.448Z","dependency_job_id":null,"html_url":"https://github.com/hamoda-dev/configure","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/hamoda-dev/configure","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamoda-dev%2Fconfigure","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamoda-dev%2Fconfigure/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamoda-dev%2Fconfigure/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamoda-dev%2Fconfigure/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hamoda-dev","download_url":"https://codeload.github.com/hamoda-dev/configure/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamoda-dev%2Fconfigure/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28405135,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T21:51:37.118Z","status":"ssl_error","status_checked_at":"2026-01-13T21:45:14.585Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2026-01-13T23:26:47.259Z","updated_at":"2026-01-13T23:26:47.968Z","avatar_url":"https://github.com/hamoda-dev.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hamoda-Dev/Configure\n\nPHP Configuration library. Use to get all your app configuration from files for diffrent enviroment { development, prodection, ...}\nIt's Easy to use just a few steps to done with it\n\n## installtion\ninstall via composer :\n\n```sh\ncomposer require hamoda-dev/configure\n```\n\n## Configurations\n\n1 - copy this to your composer.json file\n\n```\n\"scripts\": {\n        \"configure-init\": [\n            \"cp -r -d vendor/hamoda-dev/configure/sample/config config\",\n            \"cp -r vendor/hamoda-dev/configure/sample/configure.json configure.json\"\n        ]\n}\n```\n\n2 - run this command in your project to create config directory \u0026 configure.json\n\n```sh\n    composer run-script configure-init\n```\n\nnow you have config directory and configure.json\n\n#### Config Directory\ncontaine to directory { development, production }\n- inside development put your development configuration files\n- inside production put your production configuration files\n\nyou can switch betwen the environments in the configure.json file\n\n##### configure.json\n```\n{\n  \"config_path\" : \"config\",\n  \"environment\" : \"development\"\n}\n\n```\nin ``` \"environment\" : \"here you switching environment\" ``` =\u003e ``` develoment ``` or ``` production ```\n\n## Syntax \n```\n\u003c?php\n\n    return [\n        'app_url' =\u003e 'http://localhost',\n        'mysql' =\u003e [\n            'driver' =\u003e 'mysql',\n            'url' =\u003e '',\n            'host' =\u003e '127.0.0.1',\n            'port' =\u003e '3306',\n            'database' =\u003e 'forge',\n            'username' =\u003e 'root',\n            'password' =\u003e '',\n            'unix_socket' =\u003e '',\n            'charset' =\u003e 'utf8mb4',\n            'collation' =\u003e 'utf8mb4_unicode_ci',\n            'prefix' =\u003e '',\n            'prefix_indexes' =\u003e true,\n            'strict' =\u003e true,\n            'engine' =\u003e null,\n        ]\n```\n## Uesge\n   you can access all your configuration via ``` config($parm) ``` .  Accept one parametr = config that you need it\n   \n   from previus syntax example \n    ```config('app_url')``` the output shuld be :  ```http://localhost```\n    if you need to deeper value just use ```.``` betwen the keys\n    ``` config('mysql.host') ```  the output shuld be : ```127.0.0.1```\n    \u003cbr\u003e\n    \u003cbr\u003e\n    You Can Add Any Number of configuration files an access it very easy\n    \n    \nEnjoy :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhamoda-dev%2Fconfigure","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhamoda-dev%2Fconfigure","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhamoda-dev%2Fconfigure/lists"}