{"id":15527191,"url":"https://github.com/sixlive/dotenv-editor","last_synced_at":"2025-04-06T07:11:40.446Z","repository":{"id":46016440,"uuid":"145056191","full_name":"sixlive/dotenv-editor","owner":"sixlive","description":"A PHP Package for editing dotenv files","archived":false,"fork":false,"pushed_at":"2024-09-02T14:46:46.000Z","size":29,"stargazers_count":74,"open_issues_count":3,"forks_count":6,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-06T03:51:14.435Z","etag":null,"topics":["dotenv","dotenv-editor","php"],"latest_commit_sha":null,"homepage":"","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/sixlive.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","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},"funding":{"github":"sixlive"}},"created_at":"2018-08-17T01:23:07.000Z","updated_at":"2024-10-07T15:08:10.000Z","dependencies_parsed_at":"2024-10-29T19:30:22.259Z","dependency_job_id":null,"html_url":"https://github.com/sixlive/dotenv-editor","commit_stats":{"total_commits":15,"total_committers":4,"mean_commits":3.75,"dds":0.5333333333333333,"last_synced_commit":"4fb9c0d4124a4e9e3c205fa0522e67a5b0253de5"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sixlive%2Fdotenv-editor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sixlive%2Fdotenv-editor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sixlive%2Fdotenv-editor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sixlive%2Fdotenv-editor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sixlive","download_url":"https://codeload.github.com/sixlive/dotenv-editor/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247445670,"owners_count":20939958,"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":["dotenv","dotenv-editor","php"],"created_at":"2024-10-02T11:04:56.559Z","updated_at":"2025-04-06T07:11:40.428Z","avatar_url":"https://github.com/sixlive.png","language":"PHP","readme":"# Dotenv editing toolset\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/sixlive/dotenv-editor.svg?style=flat-square)](https://packagist.org/packages/sixlive/dotenv-editor)\n[![Total Downloads](https://img.shields.io/packagist/dt/sixlive/dotenv-editor.svg?style=flat-square)](https://packagist.org/packages/sixlive/dotenv-editor)\n![run-tests](https://github.com/sixlive/dotenv-editor/workflows/run-tests/badge.svg)\n\nThis package provides some basic tools for editing dotenv files.\n\n## Installation\nYou can install the package via composer:\n\n```bash\n\u003e composer require sixlive/dotenv-editor\n```\n\n## Usage\n\n### Add a section\nGiven we have an existing file at `base_path('.env')`.\n```\nAPP_KEY=supersecret\nAPP_FOO=BAR\n```\n\nWe can add a new section to the existing configuration file.\n``` php\n$editor = new DotenvEditor;\n\n$editor-\u003eload(base_path('.env'));\n$editor-\u003eheading('Examples');\n$editor-\u003eset('FOO', 'bar');\n$editor-\u003eset('BAZ', 'bax');\n$editor-\u003eunset('APP_FOO');\n$editor-\u003esave();\n```\n\nThis will result in the following changes.\n```\nAPP_KEY=supersecret\n\n# Examples\nFOO=bar\nBAZ=bax\n```\n\n## Testing\n```bash\n\u003e vendor/bin/phpunit\n```\n\n## Code Style\nStyleCI will apply the [Laravel preset](https://docs.styleci.io/presets#laravel).\n\n## Changelog\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Contributing\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## Security\nIf you discover any security related issues, please email oss@tjmiller.co instead of using the issue tracker.\n\n\n## Credits\n- [TJ Miller](https://github.com/sixlive)\n- [All Contributors](../../contributors)\n\n## License\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","funding_links":["https://github.com/sponsors/sixlive"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsixlive%2Fdotenv-editor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsixlive%2Fdotenv-editor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsixlive%2Fdotenv-editor/lists"}