{"id":15293733,"url":"https://github.com/glocurrency/api-layer","last_synced_at":"2026-01-14T01:33:10.496Z","repository":{"id":62511291,"uuid":"272971991","full_name":"glocurrency/api-layer","owner":"glocurrency","description":"Basic API layer.","archived":true,"fork":false,"pushed_at":"2020-07-14T05:42:06.000Z","size":27,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-07T06:37:10.002Z","etag":null,"topics":["passport"],"latest_commit_sha":null,"homepage":"","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/glocurrency.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}},"created_at":"2020-06-17T12:46:49.000Z","updated_at":"2023-01-28T13:12:34.000Z","dependencies_parsed_at":"2022-11-02T10:46:12.971Z","dependency_job_id":null,"html_url":"https://github.com/glocurrency/api-layer","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/glocurrency/api-layer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glocurrency%2Fapi-layer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glocurrency%2Fapi-layer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glocurrency%2Fapi-layer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glocurrency%2Fapi-layer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/glocurrency","download_url":"https://codeload.github.com/glocurrency/api-layer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glocurrency%2Fapi-layer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408585,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T00:40:43.272Z","status":"ssl_error","status_checked_at":"2026-01-14T00:40:42.636Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["passport"],"created_at":"2024-09-30T16:53:11.233Z","updated_at":"2026-01-14T01:33:10.476Z","avatar_url":"https://github.com/glocurrency.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Api Layer\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://packagist.org/packages/glocurrency/api-layer\"\u003e\u003cimg src=\"https://poser.pugx.org/glocurrency/api-layer/d/total.svg\" alt=\"Total Downloads\"\u003e\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/glocurrency/api-layer\"\u003e\u003cimg src=\"https://poser.pugx.org/glocurrency/api-layer/v/stable.svg\" alt=\"Latest Stable Version\"\u003e\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/glocurrency/api-layer\"\u003e\u003cimg src=\"https://poser.pugx.org/glocurrency/api-layer/license.svg\" alt=\"License\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## Installation\n\n```\ncomposer require glocurrency/api-layer\n```\n\n### Passport\nThis module use \u003ca href=\"https://github.com/laravel/passport\"\u003eLaravel Passport\u003c/a\u003e heavily. In order to make it work properly, follow the steps:\n1. Run \n```\nphp artisan glo:apilayer:passport\n```\n\nThis command will:\n- generate the keys\n- copy the migrations from passport\n- replace both `client_id` and `user_id` columns in migrations with UUID.\n\n2. Copy the passport middlewares to the `$routeMiddleware` in your `app/Http/Kernel.php` file:\n\n```php\n'client' =\u003e \\Laravel\\Passport\\Http\\Middleware\\CheckClientCredentials::class,\n'scopes' =\u003e \\Laravel\\Passport\\Http\\Middleware\\CheckScopes::class,\n'scope' =\u003e \\Laravel\\Passport\\Http\\Middleware\\CheckForAnyScope::class,\n```\n\n3. Add the following code to the `boot` method of `AuthServiceProvider`:\n\n```php\nuse Glocurrency\\ApiLayer\\ApiLayer;\n\npublic function boot()\n{\n    $this-\u003eregisterPolicies();\n\n    ApiLayer::passport();\n}\n```\n\n4. Generate both \u003ca href=\"https://laravel.com/docs/master/passport#client-credentials-grant-tokens\"\u003eClient\u003c/a\u003e and \u003ca href=\"https://laravel.com/docs/master/passport#creating-a-personal-access-client\"\u003ePersonal\u003c/a\u003e grant tokens.\n\n```\nphp artisan passport:client --client\nphp artisan passport:client --personal\n```\n\nAfter creating your personal access client, place the client's ID and plain-text secret value in your application's `.env` file:\n\n```ini\nPASSPORT_PERSONAL_ACCESS_CLIENT_ID=client-id-value\nPASSPORT_PERSONAL_ACCESS_CLIENT_SECRET=unhashed-client-secret-value\n```\n\n5. Use `UnauthenticatedTrait` in your `app/Exceptions/Handler.php` file:\n\n```php\nuse Glocurrency\\ApiLayer\\Traits\\UnauthenticatedTrait;\n\nclass Handler extends ExceptionHandler\n{\n    use UnauthenticatedTrait;\n```\n\n## License\n\nGlocurrency Api Layer is open-sourced software licensed under the [MIT license](LICENSE).\n\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fglocurrency%2Fapi-layer.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fglocurrency%2Fapi-layer?ref=badge_large)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglocurrency%2Fapi-layer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fglocurrency%2Fapi-layer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglocurrency%2Fapi-layer/lists"}