{"id":18578334,"url":"https://github.com/astrotomic/ecologi-sdk","last_synced_at":"2025-04-10T10:31:11.132Z","repository":{"id":62355084,"uuid":"546608477","full_name":"Astrotomic/ecologi-sdk","owner":"Astrotomic","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-23T01:21:01.000Z","size":47,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-29T21:06:01.135Z","etag":null,"topics":["carbon-offsetting","ecologi","sdk","sdk-php","trees","treeware"],"latest_commit_sha":null,"homepage":"https://docs.ecologi.com/docs/public-api-docs","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/Astrotomic.png","metadata":{"files":{"readme":"README.md","changelog":null,"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},"funding":{"github":["Gummibeer","SarahSibert"],"issuehunt":"astrotomic","custom":["https://forest.astrotomic.info"]}},"created_at":"2022-10-06T10:58:27.000Z","updated_at":"2023-03-31T11:34:44.000Z","dependencies_parsed_at":"2024-11-06T23:38:31.245Z","dependency_job_id":"9bde2a3b-44bb-4e8f-a22f-bfec9891c9f5","html_url":"https://github.com/Astrotomic/ecologi-sdk","commit_stats":{"total_commits":22,"total_committers":2,"mean_commits":11.0,"dds":"0.13636363636363635","last_synced_commit":"99a2f2ba34cea0bd61b5f8ad839b510851b6cf96"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Astrotomic%2Fecologi-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Astrotomic%2Fecologi-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Astrotomic%2Fecologi-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Astrotomic%2Fecologi-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Astrotomic","download_url":"https://codeload.github.com/Astrotomic/ecologi-sdk/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248199136,"owners_count":21063641,"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":["carbon-offsetting","ecologi","sdk","sdk-php","trees","treeware"],"created_at":"2024-11-06T23:34:43.585Z","updated_at":"2025-04-10T10:31:11.094Z","avatar_url":"https://github.com/Astrotomic.png","language":"PHP","funding_links":["https://github.com/sponsors/Gummibeer","https://github.com/sponsors/SarahSibert","https://issuehunt.io/r/astrotomic","https://forest.astrotomic.info"],"categories":[],"sub_categories":[],"readme":"# Ecologi SDK\n\n[![Latest Version](http://img.shields.io/packagist/v/astrotomic/ecologi-sdk.svg?label=Release\u0026style=for-the-badge)](https://packagist.org/packages/astrotomic/ecologi-sdk)\n[![MIT License](https://img.shields.io/github/license/Astrotomic/ecologi-sdk.svg?label=License\u0026color=blue\u0026style=for-the-badge)](https://github.com/Astrotomic/ecologi-sdk/blob/master/LICENSE)\n[![Offset Earth](https://img.shields.io/badge/Treeware-%F0%9F%8C%B3-green?style=for-the-badge)](https://forest.astrotomic.info)\n[![Larabelles](https://img.shields.io/badge/Larabelles-%F0%9F%A6%84-lightpink?style=for-the-badge)](https://larabelles.com)\n\n[![Total Downloads](https://img.shields.io/packagist/dt/astrotomic/ecologi-sdk.svg?label=Downloads\u0026style=flat-square)](https://packagist.org/packages/astrotomic/ecologi-sdk)\n[![PHP Version](https://img.shields.io/packagist/dependency-v/astrotomic/ecologi-sdk/php?style=flat-square)](https://packagist.org/packages/astrotomic/ecologi-sdk)\n\n## Installation\n\n```bash\ncomposer require astrotomic/ecologi-sdk\n```\n\n## Usage\n\n```php\nuse Astrotomic\\Ecologi\\Ecologi;\nuse Astrotomic\\Ecologi\\Enums\\CarbonUnit;\n\n$ecologi = new Ecologi($token);\n\n// Reporting API\n$ecologi-\u003ereporting()-\u003egetTrees('astrotomic');\n$ecologi-\u003ereporting()-\u003egetCarbonOffset('astrotomic');\n$ecologi-\u003ereporting()-\u003egetImpact('astrotomic');\n\n// Purchasing API\n$ecologi-\u003epurchasing(test: false)-\u003ebuyTrees(10, name: 'Gummibeer', idempotency: '1234567890');\n$ecologi-\u003epurchasing(test: false)-\u003ebuyCarbonOffset(500, unit: CarbonUnit::KG, idempotency: '1234567890');\n```\n\n## Contributing\n\nPlease see [CONTRIBUTING](https://github.com/Astrotomic/.github/blob/master/CONTRIBUTING.md) for details. You could also be interested in [CODE OF CONDUCT](https://github.com/Astrotomic/.github/blob/master/CODE_OF_CONDUCT.md).\n\n### Security\n\nIf you discover any security related issues, please check [SECURITY](https://github.com/Astrotomic/.github/blob/master/SECURITY.md) for steps to report it.\n\n## Credits\n\n- [Tom Witkowski](https://github.com/Gummibeer)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n\n## Treeware\n\nYou're free to use this package, but if it makes it to your production environment I would highly appreciate you buying the world a tree.\n\nIt’s now common knowledge that one of the best tools to tackle the climate crisis and keep our temperatures from rising above 1.5C is to [plant trees](https://www.bbc.co.uk/news/science-environment-48870920). If you contribute to my forest you’ll be creating employment for local families and restoring wildlife habitats.\n\nYou can buy trees at [ecologi.com/astrotomic](https://forest.astrotomic.info)\n\nRead more about Treeware at [treeware.earth](https://treeware.earth)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fastrotomic%2Fecologi-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fastrotomic%2Fecologi-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fastrotomic%2Fecologi-sdk/lists"}