{"id":28173368,"url":"https://github.com/memeddev/soluti-sdk-php","last_synced_at":"2025-10-09T10:09:43.786Z","repository":{"id":87067972,"uuid":"206371063","full_name":"MemedDev/soluti-sdk-php","owner":"MemedDev","description":"[DEPRECATED] PHP sdk to sign PDF documents using Soluti's service","archived":false,"fork":false,"pushed_at":"2020-06-19T22:06:16.000Z","size":92,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-15T20:13:38.803Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MemedDev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2019-09-04T17:07:03.000Z","updated_at":"2020-07-30T03:03:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"a1c63c0a-8d75-4112-add4-83f9571f2ea8","html_url":"https://github.com/MemedDev/soluti-sdk-php","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/MemedDev/soluti-sdk-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MemedDev%2Fsoluti-sdk-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MemedDev%2Fsoluti-sdk-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MemedDev%2Fsoluti-sdk-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MemedDev%2Fsoluti-sdk-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MemedDev","download_url":"https://codeload.github.com/MemedDev/soluti-sdk-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MemedDev%2Fsoluti-sdk-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001323,"owners_count":26083040,"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-10-09T02:00:07.460Z","response_time":59,"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":[],"created_at":"2025-05-15T20:13:28.123Z","updated_at":"2025-10-09T10:09:43.778Z","avatar_url":"https://github.com/MemedDev.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Soluti PHP sdk\n\nIts a simple SDK for PHP language that abstract Soluti's digital signature service. In the first moment is possible to sign PDF documents authenticating using _OAuth_ or _Basic Credentials_\n\n## Installation\n\n```bash\ncomposer require \"memeddev/soluti-sdk-php=*\"\n```\n\n## Basic Usage\n\n```php\nuse Memed\\Soluti\\Auth\\Client;\nuse Memed\\Soluti\\Auth\\Credentials;\nuse Memed\\Soluti\\Auth\\Token;\nuse Memed\\Soluti\\Config;\nuse Memed\\Soluti\\Document;\nuse Memed\\Soluti\\Manager;\nuse Memed\\Soluti\\Signer;\nuse GuzzleHttp\\Client as GuzzleClient;\n\n// -----------------------\n// Authentication strategy\n// -----------------------\n\n// Using Credentials\n$token = new Credentials(\n    new Client('CLIENT_ID', 'CLIENT_SECRET'),\n    'USERNAME',\n    'PASSWORD',\n    60 // How much longer token will be acceptable after authentication (in seconds)\n);\n\n// Using OAuth token\n$token = new Token('some-secret-oauth-token', 'bearer');\n\n// -----------------------\n// Document signature\n// -----------------------\n \n// Defines base URL's\n$config = new Config([\n    'url_cess' =\u003e 'http://cess:8080',\n    'url_vaultid' =\u003e 'https://apicloudid.hom.vaultid.com.br/oauth',\n]);\n\n// Initializes signer service\n$manager = new Manager($config, new Client(new GuzzleClient());\n$signer = new Signer($manager);\n\n// Creates a document instance using file which you want to sign.\n$document = new Document(__DIR__.'/file_to_sign.pdf');\n\n// Defines directory to save signed documents.\n$destinationDir = '/some/directory';\n\n// Signs document\n$files = $signer-\u003esign($document, $token, $destinationDir);\n\n// Result\n// array(1) {\n//   [0] =\u003e\n//   string(32) \"/some/directory/signed_file.pdf\"\n// }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmemeddev%2Fsoluti-sdk-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmemeddev%2Fsoluti-sdk-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmemeddev%2Fsoluti-sdk-php/lists"}