{"id":18358625,"url":"https://github.com/svenluijten/super-basic-auth","last_synced_at":"2025-04-06T13:31:36.339Z","repository":{"id":25979901,"uuid":"107023626","full_name":"svenluijten/super-basic-auth","owner":"svenluijten","description":"🔒 A lightweight package to add basic authentication to your Laravel app.","archived":false,"fork":false,"pushed_at":"2025-03-05T09:39:47.000Z","size":96,"stargazers_count":23,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"2.x","last_synced_at":"2025-03-22T00:44:14.454Z","etag":null,"topics":["authentication","basic-auth","http-auth","laravel","laravel-authentication","laravel-package"],"latest_commit_sha":null,"homepage":"https://svenluijten.com","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/svenluijten.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-10-15T15:18:55.000Z","updated_at":"2025-03-05T09:39:49.000Z","dependencies_parsed_at":"2023-02-16T06:31:26.839Z","dependency_job_id":"9f075cdb-b048-43d1-aa9f-a8bdd1800248","html_url":"https://github.com/svenluijten/super-basic-auth","commit_stats":{"total_commits":71,"total_committers":3,"mean_commits":"23.666666666666668","dds":"0.46478873239436624","last_synced_commit":"41be47ee0a0cd33150b6fba8e1d42209b80b8517"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svenluijten%2Fsuper-basic-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svenluijten%2Fsuper-basic-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svenluijten%2Fsuper-basic-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svenluijten%2Fsuper-basic-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/svenluijten","download_url":"https://codeload.github.com/svenluijten/super-basic-auth/tar.gz/refs/heads/2.x","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247488534,"owners_count":20946956,"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","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":["authentication","basic-auth","http-auth","laravel","laravel-authentication","laravel-package"],"created_at":"2024-11-05T22:18:47.662Z","updated_at":"2025-04-06T13:31:35.953Z","avatar_url":"https://github.com/svenluijten.png","language":"PHP","readme":"![super-basic-auth](https://user-images.githubusercontent.com/11269635/31586185-1bd6a6b2-b1ce-11e7-97a0-bae16ccb1266.jpg)\n\n# Super Basic Auth\n\n[![Latest Version on Packagist][ico-version]][link-packagist]\n[![Total Downloads][ico-downloads]][link-downloads]\n[![Software License][ico-license]](LICENSE.md)\n[![Build Status][ico-build]][link-build]\n[![StyleCI][ico-styleci]][link-styleci]\n\nThis is a super lightweight package to add the most basic form of authentication\nto your Laravel app. All you need is a webserver and a text editor!\n\n## Installation\nThe installation instructions for this package can be found below.\n\n### Downloading\nVia [composer](http://getcomposer.org):\n\n```bash\n$ composer require sven/super-basic-auth\n```\n\nOr add the package to your dependencies in `composer.json` and run\n`composer update` on the command line to download it:\n\n```json\n{\n    \"require\": {\n        \"sven/super-basic-auth\": \"^2.3\"\n    }\n}\n```\n\n## Usage\nTo use this package, first add the following code to your `config/auth.php` file:\n\n```php\nreturn [\n    // ...\n\n    'basic' =\u003e [\n        'user' =\u003e env('AUTH_USERNAME'),\n        'password' =\u003e env('AUTH_PASSWORD'),\n    ],\n];\n```\n\nBe sure to add `AUTH_USERNAME` and `AUTH_PASSWORD` to your `.env` file. You can\ncall these entries whatever you want.\n\nFinally, apply the middleware to any route you want protected by those credentials:\n\n```php\nRoute::group('admin', function () {\n    // Your password protected routes.\n})-\u003emiddleware(\\Sven\\SuperBasicAuth\\SuperBasicAuth::class);\n```\n\n## Contributing\nAll contributions (pull requests, issues and feature requests) are\nwelcome. Make sure to read through the [CONTRIBUTING.md](CONTRIBUTING.md) first,\nthough. See the [contributors page](../../graphs/contributors) for all contributors.\n\n## License\n`sven/super-basic-auth` is licensed under the MIT License (MIT). Please see the\n[license file](LICENSE.md) for more information.\n\n[ico-version]: https://img.shields.io/packagist/v/sven/super-basic-auth.svg?style=flat-square\n[ico-license]: https://img.shields.io/badge/license-MIT-green.svg?style=flat-square\n[ico-downloads]: https://img.shields.io/packagist/dt/sven/super-basic-auth.svg?style=flat-square\n[ico-build]: https://img.shields.io/github/actions/workflow/status/svenluijten/super-basic-auth/run-tests.yml?style=flat-square\n[ico-styleci]: https://styleci.io/repos/107023626/shield\n\n[link-packagist]: https://packagist.org/packages/sven/super-basic-auth\n[link-downloads]: https://packagist.org/packages/sven/super-basic-auth\n[link-build]: https://github.com/svenluijten/super-basic-auth/actions/workflows/run-tests.yml\n[link-styleci]: https://styleci.io/repos/107023626\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvenluijten%2Fsuper-basic-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsvenluijten%2Fsuper-basic-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvenluijten%2Fsuper-basic-auth/lists"}