PHP client library for Akamai {OPEN} EdgeGrid Authentication scheme (based on Guzzle)
This release is the final 1.0.0 (stable) release for akamai-open/edgegrid-client
Changes since 1.0.0beta1:
This is the first beta for the akamai-open/edgegrid-client package.
Thanks to @siwinski
Added a new Client::createInstance()
method that will try to use the environment and fallback to .edgerc
.
This method will check in order:
AKAMAI_{SECTION}_*
environment variablesdefault
section, AKAMAI_*
environment variablesdefault
if none) section in .edgerc
default
section, AKAMAI_*
environment variablesThis new method is the recommended way for instantiating an instance.
The environment variables are:
AKAMAI_HOST
or AKAMAI_{SECTION}_HOST
AKAMAI_CLIENT_TOKEN
or AKAMAI_{SECTION}_CLIENT_TOKEN
AKAMAI_CLIENT_SECRET
or AKAMAI_{SECTION}_CLIENT_SECRET
AKAMAI_ACCESS_TOKEN
or AKAMAI_{SECTION}_ACCESS_TOKEN
For those of you using the PHAR releases, this version dramatically reduces the size of the PHAR. This will impact memory and overall resource usage.
-A
short flag for --auth-type
on CLI to match httpie\Akamai\Open\EdgeGrid\Authentication
into it's own (PHP 5.3+ compatible) packageapigen/apigen
Note: If you are using
akamai-open/edgegrid-client
as a composer dependency, it will continue to function without any changes. For details onakamai-open/edgegrid-auth
see details here.
This release adds some new getters to \Akamai\Open\EdgeGrid\Authentication
:
getQuery()
getBody()
getHttpMethod()
getConfig()
getHeaders()