{"id":21619287,"url":"https://github.com/uzulla/setmyphpini.php","last_synced_at":"2025-03-18T18:20:20.659Z","repository":{"id":146097475,"uuid":"48151663","full_name":"uzulla/setmyphpini.php","owner":"uzulla","description":"copy `my_php.ini` to PHP_CONFIG_FILE_SCAN_DIR","archived":false,"fork":false,"pushed_at":"2016-02-04T05:50:08.000Z","size":4,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-15T15:44:29.205Z","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/uzulla.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":"2015-12-17T04:08:48.000Z","updated_at":"2016-12-03T03:29:55.000Z","dependencies_parsed_at":"2023-05-01T11:32:44.803Z","dependency_job_id":null,"html_url":"https://github.com/uzulla/setmyphpini.php","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/uzulla%2Fsetmyphpini.php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uzulla%2Fsetmyphpini.php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uzulla%2Fsetmyphpini.php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uzulla%2Fsetmyphpini.php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uzulla","download_url":"https://codeload.github.com/uzulla/setmyphpini.php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244277179,"owners_count":20427312,"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-24T23:08:31.774Z","updated_at":"2025-03-18T18:20:20.641Z","avatar_url":"https://github.com/uzulla.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# setmyphpini.php\n\nphpenvとかでphpを沢山つくると、毎回それらの`php.ini`を修正するのが面倒です。しかもディレクトリが中々深くてコピーも面倒。\n\n`php setmyphpini.php` を実行することで、実行したPHPの`PHP_CONFIG_FILE_SCAN_DIR`（conf.d）の中に`my_php.ini`ファイルをコピーします。\n\niniディレクトリの中にあなたのファイルをいれてください。\n\n（とはいえ、PHP7からtimezoneの指定やmbstringの設定をがんばらなくてもそこそこになりましたね、嬉しいですね）\n\n\n# ファイルの設置先\n\n`ini/メジャー番号/マイナー番号/リリース番号`というディレクトリをつくってその中におきます。\n\nただ、たとえばリリース番号違いは十分共通に使えますので、マイナー、リリース番号は省略したディレクトリ構造にできます（ディレクトリが最長マッチしたiniを使います）。\n\n\n# ini.sampleについて\n\niniディレクトリ構造のサンプルになります。が、iniがない（iniにマッチするものがない）場合はこちらをつかいます。\n\nはいっている`my_php.ini`はとあるPHPerがつかっているものなので、参考にするのは at your own riskでお願いします。（ツッコミは歓迎しますｗ）\n\nご自身で作成して、iniの中にいれると良いでしょう。\n\n\n# LICENSE\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuzulla%2Fsetmyphpini.php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuzulla%2Fsetmyphpini.php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuzulla%2Fsetmyphpini.php/lists"}