Download the PHP package akamai-open/edgegrid-auth without Composer
On this page you can find all versions of the php package akamai-open/edgegrid-auth. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download akamai-open/edgegrid-auth
More information about akamai-open/edgegrid-auth
Files in akamai-open/edgegrid-auth
Package edgegrid-auth
Short Description Implements the Akamai {OPEN} EdgeGrid Authentication specified by https://techdocs.akamai.com/developer/docs/set-up-authentication-credentials
License Apache-2.0
Homepage https://github.com/akamai-open/AkamaiOPEN-edgegrid-php
Informations about the package edgegrid-auth
akamai-open/edgegrid-auth
Akamai EdgeGrid Authentication for PHP
This library requires PHP 8.2+ and implements the Akamai EdgeGrid Authentication scheme for PHP.
Install
To install, use composer:
Alternative installation methods
Single file (PHAR)
Download the PHAR file from the releases page and include it inside your code:
Clone or download
-
Either clone or download to pull down a copy of this repository.
- Clone the repository using git or subversion.
- Download the latest ZIP archive or specific release ZIP archive.
-
Use the composer autoloader and install the dependencies.
-
Include the autoloader.
If you don't use the autoloader, manually include all the required classes in your code.
Authentication
You can obtain the authentication credentials through an API client. Requests to the API are marked with a timestamp and a signature and are executed immediately.
-
Place your credentials in an EdgeGrid resource file
~/.edgerc, in the[default]section. -
Use your local
.edgercby providing the credentials section header and the path to your resource file. You can call your.edgercfile using the\Akamai\Open\EdgeGrid\Authentication::createFromEdgeRcFile()method.The location of your
.edgercfile is optional, as it defaults to~/.edgerc.Alternatively, you can hard code your credentials.
Use
Once you have installed the library, you can create the header value by calling the appropriate \Akamai\Open\Edgegrid\Authentication::set*() methods.
For example, using it with the built-in streams HTTP client might look like the following:
License
Copyright © 2026 Akamai Technologies, Inc. All rights reserved
Licensed under the Apache License, Version 2.0 (the "License"); you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.