{"id":33973779,"url":"https://github.com/toolstud-io/nowtricity","last_synced_at":"2026-06-01T04:31:13.998Z","repository":{"id":204134714,"uuid":"711186868","full_name":"toolstud-io/nowtricity","owner":"toolstud-io","description":"PHP Library for Nowtricity API","archived":false,"fork":false,"pushed_at":"2023-10-28T19:37:49.000Z","size":443,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-14T13:59:15.540Z","etag":null,"topics":["co2-emissions","nowtricity"],"latest_commit_sha":null,"homepage":"https://www.nowtricity.com/emissions-api/","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/toolstud-io.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-10-28T13:25:37.000Z","updated_at":"2023-10-28T15:09:06.000Z","dependencies_parsed_at":"2023-11-01T00:00:18.904Z","dependency_job_id":null,"html_url":"https://github.com/toolstud-io/nowtricity","commit_stats":null,"previous_names":["toolstud-io/nowtricity"],"tags_count":3,"template":false,"template_full_name":"toolstud-io/ts_php_template","purl":"pkg:github/toolstud-io/nowtricity","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toolstud-io%2Fnowtricity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toolstud-io%2Fnowtricity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toolstud-io%2Fnowtricity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toolstud-io%2Fnowtricity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/toolstud-io","download_url":"https://codeload.github.com/toolstud-io/nowtricity/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toolstud-io%2Fnowtricity/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33760645,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-01T02:00:06.963Z","response_time":115,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["co2-emissions","nowtricity"],"created_at":"2025-12-13T01:28:52.085Z","updated_at":"2026-06-01T04:31:13.980Z","avatar_url":"https://github.com/toolstud-io.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP Library for Nowtricity API\n\nGithub: \n![GitHub tag](https://img.shields.io/github/v/tag/toolstud-io/nowtricity)\n![Tests](https://github.com/toolstud-io/nowtricity/workflows/Run%20Tests/badge.svg)\n\nPackagist: \n[![Packagist Version](https://img.shields.io/packagist/v/toolstud-io/nowtricity.svg?style=flat-square)](https://packagist.org/packages/toolstud-io/nowtricity)\n[![Packagist Downloads](https://img.shields.io/packagist/dt/toolstud-io/nowtricity.svg?style=flat-square)](https://packagist.org/packages/toolstud-io/nowtricity)\n\n![](assets/unsplash.electricity.jpg)\n\nPHP Library for Nowtricity API - based on https://www.nowtricity.com/emissions-api/\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require toolstud-io/nowtricity\n```\n\n## Usage\n\n``` php\n$obj = new ToolstudIo\\Nowtricity\\Nowtricity($apiKey);\n$countries = $obj-\u003ecountries();\n$current = $obj-\u003ecurrent('belgium');\n$last24 = $obj-\u003elast24('belgium');\n$year = $obj-\u003eyear('belgium', '2022');\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\n\nIf you discover any security related issues, please email author_email instead of using the issue tracker.\n\n## Credits\n\n- [Peter Forret](https://github.com/toolstud-io)\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%2Ftoolstud-io%2Fnowtricity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftoolstud-io%2Fnowtricity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoolstud-io%2Fnowtricity/lists"}