Download the PHP package green-elephpant/carbon-aware without Composer

On this page you can find all versions of the php package green-elephpant/carbon-aware. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package carbon-aware

Green ElePHPant - CarbonAware

The Green ElePHPant wants to help you to reduce the carbon emissions of your software.

One way of doing so is to utilize energy when it is the "greenest" - i.e., when it most of it comes from renewable energies rather burning fossil fuels.

GreenElephpant\CarbonAware is a simple wrapper for APIs that provide information about the current or future carbon intensity at many regions worldwide. Currently, we support CO2Signal and Electricity Maps. Hopefully more to come!

Key concept

Building carbon aware applications means that certain activities or jobs will not, or at least in lower frequency, be carried out if the carbon intensity is too high.

For example, if the carbon intensity is low, we can update a dashboard more often than if it is not:

Installation

Simply use composer to add GreenElephpant\CarbonAware to your project:

composer require green-elephpant/carbon-aware

Configuration

GreenElephpant\CarbonAware was designed to require as few external dependencies as possible so that it can fit in almost every project. It uses several PSR for e.g. HTTP messages (PSR-17) and clients (PSR-18), so it won't work out of the box but require a bit (but not a lot) of hand wiring.

Internals

GreenElephpant\CarbonAware uses 3rd party APIs to receive carbon intensity data. To ensure future-proof and easy maintenance,


All versions of carbon-aware with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
psr/http-client Version ^1.0
psr/http-factory Version ^1.0
psr/simple-cache Version ^1.0
ext-json Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package green-elephpant/carbon-aware contains the following files

Loading the files please wait ....