{"id":21446916,"url":"https://github.com/eftybv/efty-pay-php-sdk","last_synced_at":"2026-05-11T16:37:38.688Z","repository":{"id":263431938,"uuid":"883141270","full_name":"eftybv/efty-pay-php-sdk","owner":"eftybv","description":"Efty Pay PHP SDK for Efty Pay; Efty's online transaction service designed to ensure secure and transparent buying and selling of domain names. It acts as a trusted intermediary to safeguard both the buyer and seller's interests during the transaction process.","archived":false,"fork":false,"pushed_at":"2025-01-14T10:35:27.000Z","size":114,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-17T01:42:57.496Z","etag":null,"topics":["domain-investment","efty","eftypay","grpc","php"],"latest_commit_sha":null,"homepage":"https://efty.com/partnership-program/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eftybv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-04T12:58:11.000Z","updated_at":"2025-01-14T10:34:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"e46111ef-9b08-4312-bd76-ee274b43ee57","html_url":"https://github.com/eftybv/efty-pay-php-sdk","commit_stats":null,"previous_names":["eftybv/efty-pay-php-sdk"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/eftybv/efty-pay-php-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eftybv%2Fefty-pay-php-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eftybv%2Fefty-pay-php-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eftybv%2Fefty-pay-php-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eftybv%2Fefty-pay-php-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eftybv","download_url":"https://codeload.github.com/eftybv/efty-pay-php-sdk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eftybv%2Fefty-pay-php-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32903758,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-10T13:40:02.631Z","status":"online","status_checked_at":"2026-05-11T02:00:05.975Z","response_time":120,"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":["domain-investment","efty","eftypay","grpc","php"],"created_at":"2024-11-23T03:08:17.826Z","updated_at":"2026-05-11T16:37:38.670Z","avatar_url":"https://github.com/eftybv.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# efty-pay-php-sdk\nThe Efty Pay PHP SDK for Efty Pay; Efty's online transaction service designed to ensure secure and transparent buying and selling of domain names. It acts as a trusted intermediary to safeguard both the buyer and seller's interests during the transaction process.\n\nThe Efty Pay production URLs:\n\n- SDK use (over gRPC): *api.eftypay.com:443*\n- API use (over REST): *https://api.eftypay.com*\n\n## Table of Contents\n\n- [Efty Pay PHP SDK](#efty-pay-php-sdk)\n- [Requirements](#requirements)\n- [Getting started](#getting-started)\n  - [Composer](#composer)\n  - [gRPC](#grpc)\n  - [Include the SDK](#include-the-sdk)\n  - [Install the dependencies](#install-the-dependencies)\n  - [Auto loading](#auto-loading)\n  - [Authentication](#authentication)\n  - [Quickstarts](#quickstarts)\n  - [Troubleshooting](#troubleshooting-support)\n- [API resource documentation](#api-resource-documentation)\n- [License](#license)\n\n## Requirements\n- PHP 7.0 or higher\n- PECL\n- Composer\n- Efty Pay API access credentials; please fill out the [access request form](https://forms.gle/fk85K45eThgepi1Q8) to obtain early access.\n\n## Getting started\n\n### gRPC\nUnder the hood the Efty Pay PHP SDK uses gRPC \u0026 Protobuf. If not enabled yet, you'll need to install \u0026 enable these extensions on your server.\n\n#### Install \u0026 enable the gRPC extension\n\n```\nsudo pecl install grpc\n```\n\nAfter you install the gRPC extension, make sure to enable the extension in your `php.ini` file:\n```\nextension=grpc.so\n```\n\nFor detailed instructions, visit the official [gRPC PHP readme](https://github.com/grpc/grpc/blob/v1.66.0/src/php/README.md).\n\n### Include the SDK\n\nYou can include the SDK from our public GitHub repository by adding it to your `composer.json`.\n\nOpen your `composer.json` file in your preferred text editor and add in the below:\n```json\n{\n  \"repositories\": [\n    {\n      \"type\": \"git\",\n      \"url\": \"https://github.com/eftybv/efty-pay-php-sdk\"\n    }\n  ],\n  \"require\": {\n    \"eftybv/efty-pay-php-sdk\": \"v1.0.0\"\n  }\n}\n```\n\n### Install the dependencies\nOnce you’ve added the SDK, run the following command to install it and update your dependencies:\n```bash\ncomposer update\n```\n\n### Auto loading\nComposer automatically handles autoloading for you. Make sure to include the Composer autoloader in your PHP script:\n\n```php\nrequire 'vendor/autoload.php';\n```\n\n### Authentication\nThe methods in the SDK require you to pass an auth token in that contains a JWT. Our [Efty Pay PHP Quickstart repository](https://github.com/eftybv/efty-pay-php-quickstart) contains\nsample code for howto generate the token and pass it into the request. In summary the following is required (this uses an [external library](https://github.com/firebase/php-jwt) for JWT generation):\n\nToken generation:\n```php\nuse Firebase\\JWT\\JWT;\nuse Firebase\\JWT\\Key;\n\nfunction generateToken()\n{\n    $apiKey = \"YOUR_API_KEY\";\n    $apiSecret = \"YOUR_API_SECRET\";\n    $integratorId = \"YOUR_INTEGRATOR_ID\";\n\n    $payload = [\n        \"iat\" =\u003e time(),\n        \"sub\" =\u003e $apiKey,\n        \"exp\" =\u003e time() + 600,\n        \"type\" =\u003e 2,\n        \"iid\" =\u003e $integratorId\n    ];\n\n    $token = JWT::encode($payload, $apiSecret, 'HS256');\n    return $token;\n}\n```\n\nInjecting the token in the function context:\n```php\n  $opts = [\n      \"credentials\" =\u003e \\Grpc\\ChannelCredentials::createSsl(),\n      \"update_metadata\" =\u003e function($metaData){\n         $token = generateToken();\n         $metaData['authorization'] = [$token];\n         return $metaData;\n      },\n  ];\n\n  // Define the client for the transactions API, and pass in the options with auth token.\n  $client = new \\Eftypay\\Transactions\\TransactionsClient(\"api.eftypay.com:443\", $opts);\n```\n\n### Quickstarts\nYou can now use the SDK in your project. For our quickstart and examples, please visit our [Efty Pay PHP Quickstart repository](https://github.com/eftybv/efty-pay-php-quickstart).\n\n### Troubleshooting \u0026 Support\n- If you encounter any issues, ensure that the package name is correctly specified.\n- You can also specify a version constraint (e.g., \"^1.0\" or \"dev-main\") if you need a specific version of the SDK. It's strongly recommended to always use the latest version.\n- If you run into any other issues, contact us at [api@efty.com](api@efty.com).\n\n## API resource documentation\nThe Efty Pay API resource documentation can be found at [https://docs.eftypay.com](https://docs.eftypay.com)\n\n## License\nThis project is licensed under the MIT License. See the LICENSE file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feftybv%2Fefty-pay-php-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feftybv%2Fefty-pay-php-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feftybv%2Fefty-pay-php-sdk/lists"}