{"id":20452296,"url":"https://github.com/avs123a/php-auth-example","last_synced_at":"2025-10-26T19:19:20.685Z","repository":{"id":91738042,"uuid":"129932867","full_name":"avs123a/php-auth-example","owner":"avs123a","description":"Simple php authentification example using sessions","archived":false,"fork":false,"pushed_at":"2018-05-02T05:49:24.000Z","size":56,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-15T22:43:50.206Z","etag":null,"topics":["composer","headers","htaccess","mariadb","php","php7","portfolio","session","test-task"],"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/avs123a.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}},"created_at":"2018-04-17T16:18:48.000Z","updated_at":"2024-10-23T15:38:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"c4d6ac4a-df54-41cd-8517-5e1e1cdc8e96","html_url":"https://github.com/avs123a/php-auth-example","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/avs123a%2Fphp-auth-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avs123a%2Fphp-auth-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avs123a%2Fphp-auth-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avs123a%2Fphp-auth-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/avs123a","download_url":"https://codeload.github.com/avs123a/php-auth-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242005562,"owners_count":20056428,"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":["composer","headers","htaccess","mariadb","php","php7","portfolio","session","test-task"],"created_at":"2024-11-15T11:08:54.353Z","updated_at":"2025-10-26T19:19:15.643Z","avatar_url":"https://github.com/avs123a.png","language":"PHP","readme":"Simple PHP Authentification Example\n\nDirectory structure:\n\t- api\n\t\tapi.php   -  file with functions (register, check unique, login/logout, ... );\n\t- config\n\t\tdb.php    -   file with database connection settings ( host, user, password, database);\n\t- vendor(after composer installing) - folder for dependencies installed via composer;\n\t- src  -  folder for main files\n\t\tcabinet.php\n\t\tlogin.php\n\t\tlogin.html\n\t\tlogout.php\n\t\tsignup.php\n\t\tsignup_procedure.php\n\t\t\n\t- root directory:\n\t\t.htaccess - routing rule\n\n\t\t\nRequirements:\n- PHP \u003e= 7.1\n- MariaDB \u003e= 10.1\n\n\nInstalling:\n- clone this repository\n- composer install\n- change database settings in \\config\\db.php\n- create database and execute sql queries from test12.sql file\n\n  IF YOU WANT TO RUN SITE NOT FROM DOMAIN ROOT:\n- configure server virtual host similar to httpd-example.conf file\n  or examples: https://httpd.apache.org/docs/2.4/vhosts/examples.html\n  \n  \n  \n  Notes :\n- Configuration is dependent on server features, OS type ...\n- If you run this website on server environment that using special variables ( %hostdir% , ...)\n  like OpenServer, virtual hosts will not working.\n\n  ","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favs123a%2Fphp-auth-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Favs123a%2Fphp-auth-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favs123a%2Fphp-auth-example/lists"}