{"id":16315705,"url":"https://github.com/sohelahmed7/json_file_user_provider","last_synced_at":"2026-04-12T11:41:25.901Z","repository":{"id":42948703,"uuid":"111292439","full_name":"SOHELAHMED7/json_file_user_provider","owner":"SOHELAHMED7","description":"Authenticate user stored in json file in Laravel","archived":false,"fork":false,"pushed_at":"2023-02-01T23:34:11.000Z","size":237,"stargazers_count":3,"open_issues_count":4,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-31T09:22:30.152Z","etag":null,"topics":["authentication","json","laravel","php","webapp"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SOHELAHMED7.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":"2017-11-19T12:21:13.000Z","updated_at":"2023-03-04T05:47:11.000Z","dependencies_parsed_at":"2022-09-07T05:22:46.047Z","dependency_job_id":null,"html_url":"https://github.com/SOHELAHMED7/json_file_user_provider","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SOHELAHMED7%2Fjson_file_user_provider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SOHELAHMED7%2Fjson_file_user_provider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SOHELAHMED7%2Fjson_file_user_provider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SOHELAHMED7%2Fjson_file_user_provider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SOHELAHMED7","download_url":"https://codeload.github.com/SOHELAHMED7/json_file_user_provider/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238183533,"owners_count":19430140,"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","json","laravel","php","webapp"],"created_at":"2024-10-10T21:58:14.090Z","updated_at":"2025-10-25T17:30:23.212Z","avatar_url":"https://github.com/SOHELAHMED7.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Authenticate user stored in json file in Laravel\n\nThis is simple laravel web app (can also be used in APIs) which demonstrate authentication of the user of which the data is stored in json file.\n\nIt is similar to simple laravel app created by `composer create-project --prefer-dist laravel/laravel blog` with addition/modification of the following files:\n* **project/user_provider/\\***\n* **project/config/auth.php**\n* **project/app/Extension/\\***\n\nNo RDBMS like MySQL or NoSQL DB like mongoDB is required for this project.\nThis is mainly for educational purpose, use of above DBs in the projects are highly recommended for data storage.\n\nUtilizing awesome concepts of generic user, user provider and so on of Laravel, you can also authenticated the users of which data are stored in csv, text, xlxs etc using the flow demonstrated here in above files.\n\n\n### Installation and configuration\n* Open terminal\n* `git clone https://github.com/SOHELAHMED7/json_file_user_provider.git`\n* `cd json_file_user_provider`\n* `composer install`\n* Rename .env.example file to .env `mv .env.example .env`\n* Give write permissions to directories stored in /path/to/json_file_user_provider/storage like `sudo chown -R www-data:www-data storage/framework/views/`\n* `php artisan key:generate`\n* Open corresponding project url in the browser and login using the info provided in `user_provider/users.json` (for simplicity user passwords are stored as plain text in this file)\n\n### When it can be used\nIf the users info are stored in separate DB and in case if it goes down, its exported backup file can be used here.\n\nIf initially the user info (in some cases) are only stored in excel sheet (or json file like here) and then you wish to authenticate your app on the top of that data, this might be helpful.\n\n\n### Contributions\nContributions are welcome.\n\n###  Reference\nhttps://laravel.com/docs/5.5/authentication#adding-custom-user-providers\n\n### License\nGPL v3\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsohelahmed7%2Fjson_file_user_provider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsohelahmed7%2Fjson_file_user_provider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsohelahmed7%2Fjson_file_user_provider/lists"}