{"id":21541807,"url":"https://github.com/bencoderus/min-auth","last_synced_at":"2026-03-02T14:41:56.796Z","repository":{"id":53187300,"uuid":"325825378","full_name":"bencoderus/min-auth","owner":"bencoderus","description":"Min auth is a package that allows you to create and manage a client based authentication system on your Laravel web application.","archived":false,"fork":false,"pushed_at":"2021-04-02T00:20:50.000Z","size":272,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-19T12:19:46.076Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bencoderus.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-12-31T15:22:50.000Z","updated_at":"2021-08-21T08:31:10.000Z","dependencies_parsed_at":"2022-09-14T14:02:18.172Z","dependency_job_id":null,"html_url":"https://github.com/bencoderus/min-auth","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/bencoderus/min-auth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bencoderus%2Fmin-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bencoderus%2Fmin-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bencoderus%2Fmin-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bencoderus%2Fmin-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bencoderus","download_url":"https://codeload.github.com/bencoderus/min-auth/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bencoderus%2Fmin-auth/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30006770,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T14:08:50.421Z","status":"ssl_error","status_checked_at":"2026-03-02T14:08:50.037Z","response_time":60,"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":"2024-11-24T05:07:43.367Z","updated_at":"2026-03-02T14:41:56.779Z","avatar_url":"https://github.com/bencoderus.png","language":"PHP","readme":"\u003cp align=\"center\"\u003e\u003cimg src=\"/images/preview.jpg\" alt=\"Laravel webhook preview\"\u003e\u003c/p\u003e\n\n# Min Auth\n\n[![Build Status](https://img.shields.io/travis/bencoderus/min-auth/master.svg?style=flat-square)](https://travis-ci.org/bencoderus/min-auth)\n[![Latest Stable Version](https://poser.pugx.org/bencoderus/min-auth/v)](//packagist.org/packages/bencoderus/minauth)\n[![License](https://poser.pugx.org/bencoderus/min-auth/license)](//packagist.org/packages/bencoderus/minaut)\n\nMin Auth is a Laravel package that allows you to create and manage a client based authentication system on your Laravel web\napplication.\n\n## Installation\n\nThis package requires PHP \u003e= 7.2 and above. (Laravel 8 and PHP 8 support are available).\n\nYou can install the package via composer:\n\n```bash\ncomposer require bencoderus/min-auth\n```\n\nPublish migration and configurations.\n\n```bash\nphp artisan min-auth:install\n```\n\nRun migrations\n\n```bash\nphp artisan migrate\n```\n\n## Usage\n\n#### Min Auth commands\n\nPublish migration and configurations.\n\n```php\nphp artisan min-auth:install\n```\n\nCreate a client\n\n```php\nphp artisan min-auth:create-client {name}\n```\n\n### Using the middleware to protect your routes.\n\nIn your route add `auth.client`\n\n```php\nRoute::get('test', function(){\n    return \"Hello world\";\n})-\u003emiddleware('auth.client');\n```\n\nIn your controller add `auth.client`\n\n```php\npublic function __construct(){\n    $this-\u003emiddleware('auth.client');\n}\n```\n\n#### Using the helpers\n\nImport Min Auth Helper\n\n```php\nuse Bencoderus\\MinAuth\\MinAuth;\n```\n\nCreate a client\n\n```php\n\nMinAuth::createClient($name);\n// Optional\nMinAuth::createClient($name, $ip, $isBlacklisted);\n```\n\nFind a client by API key\n\n```php\nMinAuth::findByApiKey($apiKey);\n```\n\nBlacklist a client\n\n```php\nMinAuth::blacklistClient($client);\n```\n\nWhitelist a client\n\n```php\nMinAuth::whitelistClient($client);\n```\n\nRefresh Client API key\n\n```php\nMinAuth::refreshApiKey($client);\n```\n\nUpdate client Ip address\n\n```php\n$ip = \"127.0.0.8\";\nMinAuth::updateIpAddress($client, $ip);\n```\n\n#### Configuration\n\nYou can turn off IP Address verification via config/min-auth.php\n\n### Testing\n\n```bash\ncomposer test\n```\n\n### Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n### Security\n\nIf you discover any security related issues, please email bencoderus@gmail.com instead of using the issue tracker.\n\n## Credits\n\n-   [Benjamin Iduwe](https://github.com/bencoderus)\n-   [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbencoderus%2Fmin-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbencoderus%2Fmin-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbencoderus%2Fmin-auth/lists"}