2017 © Pedro Peláez
 

library edgegrid-auth

Implements the Akamai {OPEN} EdgeGrid Authentication specified by https://developer.akamai.com/introduction/Client_Auth.html

image

akamai-open/edgegrid-auth

Implements the Akamai {OPEN} EdgeGrid Authentication specified by https://developer.akamai.com/introduction/Client_Auth.html

  • Thursday, April 26, 2018
  • by dshafik
  • Repository
  • 4 Watchers
  • 4 Stars
  • 68,238 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 4 Forks
  • 1 Open issues
  • 24 Versions
  • 35 % Grown

The README.md

akamai-open/edgegrid-auth

Akamai EdgeGrid Authentication for PHP, (*1)

This library requires PHP 8+ and implements the Akamai EdgeGrid Authentication scheme for PHP., (*2)

Install

To install, use composer:, (*3)

$ composer require akamai-open/edgegrid-auth

Alternative installation methods

Single file (PHAR)

Download the PHAR file from the releases page and include it inside your code:, (*4)

```php
include 'akamai-open-edgegrid-auth.phar';

// Library is ready to use
```

Clone or download

  1. Either clone or download to pull down a copy of this repository., (*5)

  2. Use the composer autoloader and install the dependencies., (*6)

      $ composer install
    
  3. Include the autoloader., (*7)

    require_once 'vendor/autoload.php';
    

    If you don't use the autoloader, include all the required classes manually in your code., (*8)

    require_once 'src/Authentication.php';
    require_once 'src/Authentication/Timestamp.php';
    require_once 'src/Authentication/Nonce.php';
    require_once 'src/Authentication/Exception.php';
    require_once 'src/Authentication/Exception/ConfigException.php';
    require_once 'src/Authentication/Exception/SignerException.php';
    require_once 'src/Authentication/Exception/SignerException/InvalidSignDataException.php';
    

Use

Once you have installed the library, you can create the header value by calling the appropriate \Akamai\Open\Edgegrid\Authentication::set*() methods., (*9)

For example, using it with the built-in streams HTTP client might look like the following:, (*10)

$auth = \Akamai\Open\EdgeGrid\Authentication::createFromEdgeRcFile('default', '/.edgerc');
$auth->setHttpMethod('GET');
$auth->setPath('/identity-management/v3/user-profile');

$context = array(
  'http' => array(
    'header' => array(
      'Authorization: ' . $auth->createAuthHeader(),
      'Content-Type: application/json'
    )
  )
);

$context = stream_context_create($context);

$response = json_decode(file_get_contents('https://' . $auth->getHost() . $auth->getPath(), null, $context));

License

Copyright © 2022 Akamai Technologies, Inc. All rights reserved, (*11)

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0., (*12)

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., (*13)

The Versions

26/04 2018

dev-master

9999999-dev https://github.com/akamai-open/AkamaiOPEN-edgegrid-php

Implements the Akamai {OPEN} EdgeGrid Authentication specified by https://developer.akamai.com/introduction/Client_Auth.html

  Sources   Download

Apache-2.0

The Requires

  • php >=5.3

 

The Development Requires

authentication open akamai edgegrid

01/09 2017

1.0.1

1.0.1.0 https://github.com/akamai-open/AkamaiOPEN-edgegrid-php

Implements the Akamai {OPEN} EdgeGrid Authentication specified by https://developer.akamai.com/introduction/Client_Auth.html

  Sources   Download

Apache-2.0

The Requires

  • php >=5.3

 

The Development Requires

authentication open akamai edgegrid

01/09 2017

dev-issue/3-trailing-whitespace

dev-issue/3-trailing-whitespace https://github.com/akamai-open/AkamaiOPEN-edgegrid-php

Implements the Akamai {OPEN} EdgeGrid Authentication specified by https://developer.akamai.com/introduction/Client_Auth.html

  Sources   Download

Apache-2.0

The Requires

  • php >=5.3

 

The Development Requires

authentication open akamai edgegrid

19/05 2017

1.0.0

1.0.0.0 https://github.com/akamai-open/AkamaiOPEN-edgegrid-php

Implements the Akamai {OPEN} EdgeGrid Authentication specified by https://developer.akamai.com/introduction/Client_Auth.html

  Sources   Download

Apache-2.0

The Requires

  • php >=5.3

 

The Development Requires

authentication open akamai edgegrid

28/04 2017

1.0.0beta2

1.0.0.0-beta2 https://github.com/akamai-open/AkamaiOPEN-edgegrid-php

Implements the Akamai {OPEN} EdgeGrid Authentication specified by https://developer.akamai.com/introduction/Client_Auth.html

  Sources   Download

Apache-2.0

The Requires

  • php >=5.3

 

The Development Requires

authentication open akamai edgegrid

13/01 2017

1.0.0beta1

1.0.0.0-beta1 https://github.com/akamai-open/AkamaiOPEN-edgegrid-php

Implements the Akamai {OPEN} EdgeGrid Authentication specified by https://developer.akamai.com/introduction/Client_Auth.html

  Sources   Download

Apache-2.0

The Requires

  • php >=5.3

 

The Development Requires

authentication open akamai edgegrid

12/01 2017

dev-ci-improvements

dev-ci-improvements https://github.com/akamai-open/AkamaiOPEN-edgegrid-php

Implements the Akamai {OPEN} EdgeGrid Authentication specified by https://developer.akamai.com/introduction/Client_Auth.html

  Sources   Download

Apache-2.0

The Requires

  • php >=5.3

 

The Development Requires

authentication open akamai edgegrid

24/12 2016

0.6.2

0.6.2.0 https://github.com/akamai-open/AkamaiOPEN-edgegrid-php

Implements the Akamai {OPEN} EdgeGrid Authentication specified by https://developer.akamai.com/introduction/Client_Auth.html

  Sources   Download

Apache-2.0

The Requires

  • php >=5.3

 

The Development Requires

authentication open akamai edgegrid

24/12 2016

dev-add-env-var-config

dev-add-env-var-config https://github.com/akamai-open/AkamaiOPEN-edgegrid-php

Implements the Akamai {OPEN} EdgeGrid Authentication specified by https://developer.akamai.com/introduction/Client_Auth.html

  Sources   Download

Apache-2.0

The Requires

  • php >=5.3

 

The Development Requires

authentication open akamai edgegrid

17/12 2016

0.6.1

0.6.1.0 https://github.com/akamai-open/AkamaiOPEN-edgegrid-php

Implements the Akamai {OPEN} EdgeGrid Authentication specified by https://developer.akamai.com/introduction/Client_Auth.html

  Sources   Download

Apache-2.0

The Requires

  • php >=5.3

 

The Development Requires

authentication open akamai edgegrid

08/10 2016

0.6.0

0.6.0.0 https://github.com/akamai-open/AkamaiOPEN-edgegrid-php

Implements the Akamai {OPEN} EdgeGrid Authentication specified by https://developer.akamai.com/introduction/Client_Auth.html

  Sources   Download

Apache-2.0

The Requires

  • php >=5.3

 

The Development Requires

authentication open akamai edgegrid

08/10 2016

dev-split-package

dev-split-package https://github.com/akamai-open/AkamaiOPEN-edgegrid-php

Implements the Akamai {OPEN} EdgeGrid Authentication specified by https://developer.akamai.com/introduction/Client_Auth.html

  Sources   Download

Apache-2.0

The Requires

  • php >=5.3

 

The Development Requires

authentication open akamai edgegrid

08/10 2016

dev-split-package-auth

dev-split-package-auth https://github.com/akamai-open/AkamaiOPEN-edgegrid-php

Implements the Akamai {OPEN} EdgeGrid Authentication specified by https://developer.akamai.com/introduction/Client_Auth.html

  Sources   Download

Apache-2.0

The Requires

  • php >=5.3

 

The Development Requires

authentication open akamai edgegrid

29/08 2016

dev-test-5.3-5.4

dev-test-5.3-5.4 https://github.com/akamai-open/edgegrid-auth-php

Implements the Akamai {OPEN} EdgeGrid Authentication specified by https://developer.akamai.com/introduction/Client_Auth.html

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

open akamai edgegrid

11/04 2016

dev-siwinski-pr-composer-json-cleanup

dev-siwinski-pr-composer-json-cleanup https://github.com/akamai-open/edgegrid-auth-php

Implements the Akamai {OPEN} EdgeGrid Authentication specified by https://developer.akamai.com/introduction/Client_Auth.html

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

open akamai edgegrid

30/10 2015

dev-fix-shebang-output

dev-fix-shebang-output https://github.com/akamai-open/edgegrid-auth-php

Implements the Akamai {OPEN} EdgeGrid Authentication specified by https://developer.akamai.com/introduction/Client_Auth.html

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

open akamai edgegrid

30/10 2015

dev-cli-improvements

dev-cli-improvements https://github.com/akamai-open/edgegrid-auth-php

Implements the Akamai {OPEN} EdgeGrid Authentication specified by https://developer.akamai.com/introduction/Client_Auth.html

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

open akamai edgegrid

30/10 2015

dev-cli-interface

dev-cli-interface https://github.com/akamai-open/edgegrid-auth-php

Implements the Akamai {OPEN} EdgeGrid Authentication specified by https://developer.akamai.com/introduction/Client_Auth.html

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

open akamai edgegrid

25/10 2015

dev-0.4.0-build

dev-0.4.0-build https://github.com/akamai-open/edgegrid-auth-php

Implements the Akamai {OPEN} EdgeGrid Authentication specified by https://developer.akamai.com/introduction/Client_Auth.html

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

open akamai edgegrid

24/10 2015

dev-exceptional-exceptions

dev-exceptional-exceptions https://github.com/akamai-open/edgegrid-auth-php

Implements the Akamai {OPEN} EdgeGrid Authentication specified by https://developer.akamai.com/introduction/Client_Auth.html

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

open akamai edgegrid

24/10 2015

dev-fix-query-string-issue-9

dev-fix-query-string-issue-9 https://github.com/akamai-open/edgegrid-auth-php

Implements the Akamai {OPEN} EdgeGrid Authentication specified by https://developer.akamai.com/introduction/Client_Auth.html

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

open akamai edgegrid

24/10 2015

dev-psr7-support

dev-psr7-support https://github.com/akamai-open/edgegrid-auth-php

Implements the Akamai {OPEN} EdgeGrid Authentication specified by https://developer.akamai.com/introduction/Client_Auth.html

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

open akamai edgegrid

24/10 2015

dev-verbose-show-body

dev-verbose-show-body https://github.com/akamai-open/edgegrid-auth-php

Implements the Akamai {OPEN} EdgeGrid Authentication specified by https://developer.akamai.com/introduction/Client_Auth.html

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

open akamai edgegrid

24/10 2015

dev-custom-user-agent

dev-custom-user-agent https://github.com/akamai-open/edgegrid-auth-php

Implements the Akamai {OPEN} EdgeGrid Authentication specified by https://developer.akamai.com/introduction/Client_Auth.html

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

open akamai edgegrid