{"id":28676459,"url":"https://github.com/code16/machina-client","last_synced_at":"2026-02-16T08:32:12.267Z","repository":{"id":53940678,"uuid":"124500549","full_name":"code16/machina-client","owner":"code16","description":"Client package for code16/machina","archived":false,"fork":false,"pushed_at":"2025-03-10T13:46:13.000Z","size":25,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-08T12:37:20.517Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/code16.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":"2018-03-09T06:53:27.000Z","updated_at":"2025-03-10T13:46:00.000Z","dependencies_parsed_at":"2024-03-07T15:26:50.012Z","dependency_job_id":"31daf06e-5ffc-46eb-9e3b-f1f905088744","html_url":"https://github.com/code16/machina-client","commit_stats":{"total_commits":24,"total_committers":5,"mean_commits":4.8,"dds":0.5833333333333333,"last_synced_commit":"d2bbf28fa5f7abad548886a123dfd93464b8dc27"},"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/code16/machina-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code16%2Fmachina-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code16%2Fmachina-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code16%2Fmachina-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code16%2Fmachina-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/code16","download_url":"https://codeload.github.com/code16/machina-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code16%2Fmachina-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29503809,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T08:14:25.707Z","status":"ssl_error","status_checked_at":"2026-02-16T08:14:25.334Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-06-13T23:04:45.751Z","updated_at":"2026-02-16T08:32:12.252Z","avatar_url":"https://github.com/code16.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Machina Client\n\n\"code16/machina-client\" is aimed to be used for implementing client to communicate with JSON APIs protected with the Code16/Machina JWT Token authentication guard. It's a simple wrapper around `GuzzleHttp` and takes cares of querying/refreshing JWT token for you. \n\n## Installation\n\n```\n    composer require code16/machina-client\n```\n\n## Usage\n\n```php\n\n    $client = new \\Code16\\MachinaClient\\MachinaClient;\n\n    $client-\u003esetBaseUrl(\"https://example.com/api\");\n    $client-\u003esetCredentials([\n        \"client\" =\u003e \"some-client-key\",\n        \"secret\" =\u003e \"some-secret-key\",\n    ]);\n\n    try {\n        $client-\u003eget(\"/foo\");  // ['foo =\u003e bar'];\n    }\n    catch(\\Code16\\MachinaClient\\Exceptions\\InvalidCredentialsException $e) \n    {\n        // Incorrect credentials\n    }\n\n```\n\n## License\n\n(c) 2018 code16.fr\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode16%2Fmachina-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcode16%2Fmachina-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode16%2Fmachina-client/lists"}