{"id":22394374,"url":"https://github.com/akamai/akamaiopen-edgegrid-php","last_synced_at":"2025-07-31T10:32:43.062Z","repository":{"id":46234145,"uuid":"70311342","full_name":"akamai/AkamaiOPEN-edgegrid-php","owner":"akamai","description":"PHP library for Akamai {OPEN} EdgeGrid Authentication scheme (signing only)","archived":false,"fork":false,"pushed_at":"2025-03-24T11:06:59.000Z","size":652,"stargazers_count":14,"open_issues_count":1,"forks_count":14,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-07-10T16:18:27.342Z","etag":null,"topics":["akamai","akamai-devexp","auth","authentication","authorization","edgegrid","open","php","signer"],"latest_commit_sha":null,"homepage":"https://techdocs.akamai.com/home","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/akamai.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-10-08T07:03:12.000Z","updated_at":"2025-03-24T10:51:22.000Z","dependencies_parsed_at":"2022-07-26T01:02:50.266Z","dependency_job_id":null,"html_url":"https://github.com/akamai/AkamaiOPEN-edgegrid-php","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/akamai/AkamaiOPEN-edgegrid-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akamai%2FAkamaiOPEN-edgegrid-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akamai%2FAkamaiOPEN-edgegrid-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akamai%2FAkamaiOPEN-edgegrid-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akamai%2FAkamaiOPEN-edgegrid-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akamai","download_url":"https://codeload.github.com/akamai/AkamaiOPEN-edgegrid-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akamai%2FAkamaiOPEN-edgegrid-php/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268024626,"owners_count":24183149,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-31T02:00:08.723Z","response_time":66,"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":["akamai","akamai-devexp","auth","authentication","authorization","edgegrid","open","php","signer"],"created_at":"2024-12-05T05:09:56.780Z","updated_at":"2025-07-31T10:32:42.805Z","avatar_url":"https://github.com/akamai.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# akamai-open/edgegrid-auth\n\n[Akamai EdgeGrid Authentication](https://techdocs.akamai.com/developer/docs/set-up-authentication-credentials) for PHP\n\nThis library requires PHP 8+ and implements the Akamai EdgeGrid Authentication scheme for PHP.\n\n## Install\n\nTo install, use [`composer`](http://getcomposer.org):\n\n```sh\n$ composer require akamai-open/edgegrid-auth\n```\n\n### Alternative installation methods\n\n#### Single file (PHAR)\n\nDownload the PHAR file from the [releases](https://github.com/akamai/AkamaiOPEN-edgegrid-php/releases) page and include it inside your code:\n\n    ```php\n    include 'akamai-open-edgegrid-auth.phar';\n\n    // Library is ready to use\n    ```\n\n#### Clone or download\n\n1. Either clone or download to pull down a copy of this repository.\n\n    * Clone the repository using [git](https://github.com/akamai/AkamaiOPEN-edgegrid-php.git) or [subversion](https://github.com/akamai/AkamaiOPEN-edgegrid-php).\n    * Download the latest [ZIP archive](https://github.com/akamai/AkamaiOPEN-edgegrid-php/archive/master.zip) or [specific release ZIP archive](https://github.com/akamai/AkamaiOPEN-edgegrid-php/releases).\n\n1. Use the composer autoloader and install the dependencies.\n\n    ```bash\n      $ composer install\n    ```\n\n1. Include the autoloader.\n\n    ```php\n    require_once 'vendor/autoload.php';\n    ```\n\n    If you don't use the autoloader, include all the required classes manually in your code.\n\n    ```php\n    require_once 'src/Authentication.php';\n    require_once 'src/Authentication/Timestamp.php';\n    require_once 'src/Authentication/Nonce.php';\n    require_once 'src/Authentication/Exception.php';\n    require_once 'src/Authentication/Exception/ConfigException.php';\n    require_once 'src/Authentication/Exception/SignerException.php';\n    require_once 'src/Authentication/Exception/SignerException/InvalidSignDataException.php';\n    ```\n\n## Use\n\nOnce you have installed the library, you can create the header value by calling the appropriate `\\Akamai\\Open\\Edgegrid\\Authentication::set*()` methods.\n\nFor example, using it with the built-in streams HTTP client might look like the following:\n\n```php\n$auth = \\Akamai\\Open\\EdgeGrid\\Authentication::createFromEdgeRcFile('default', '/.edgerc');\n$auth-\u003esetHttpMethod('GET');\n$auth-\u003esetPath('/identity-management/v3/user-profile');\n\n$context = array(\n  'http' =\u003e array(\n    'header' =\u003e array(\n      'Authorization: ' . $auth-\u003ecreateAuthHeader(),\n      'Content-Type: application/json'\n    )\n  )\n);\n\n$context = stream_context_create($context);\n\n$response = json_decode(file_get_contents('https://' . $auth-\u003egetHost() . $auth-\u003egetPath(), null, $context));\n```\n\n## License\n\nCopyright © 2022 Akamai Technologies, Inc. All rights reserved\n\nLicensed 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 \u003chttp://www.apache.org/licenses/LICENSE-2.0\u003e.\n\nUnless 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.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakamai%2Fakamaiopen-edgegrid-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakamai%2Fakamaiopen-edgegrid-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakamai%2Fakamaiopen-edgegrid-php/lists"}