{"id":21429734,"url":"https://github.com/louis-e/psl-leaderboard-system","last_synced_at":"2026-04-13T22:32:28.420Z","repository":{"id":153828209,"uuid":"230623366","full_name":"louis-e/PSL-Leaderboard-System","owner":"louis-e","description":"PSL: Simple PHP + SQL + Leaderboard System","archived":false,"fork":false,"pushed_at":"2020-05-16T13:16:16.000Z","size":254,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-16T21:48:41.063Z","etag":null,"topics":["000webhost","csharp","highscore","leaderboard","mit","php","sql","unity"],"latest_commit_sha":null,"homepage":null,"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/louis-e.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-12-28T14:50:11.000Z","updated_at":"2023-05-04T17:07:11.000Z","dependencies_parsed_at":"2023-05-30T15:45:21.967Z","dependency_job_id":null,"html_url":"https://github.com/louis-e/PSL-Leaderboard-System","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/louis-e/PSL-Leaderboard-System","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/louis-e%2FPSL-Leaderboard-System","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/louis-e%2FPSL-Leaderboard-System/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/louis-e%2FPSL-Leaderboard-System/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/louis-e%2FPSL-Leaderboard-System/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/louis-e","download_url":"https://codeload.github.com/louis-e/PSL-Leaderboard-System/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/louis-e%2FPSL-Leaderboard-System/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31774027,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T20:17:16.280Z","status":"ssl_error","status_checked_at":"2026-04-13T20:17:08.216Z","response_time":93,"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":["000webhost","csharp","highscore","leaderboard","mit","php","sql","unity"],"created_at":"2024-11-22T22:19:00.675Z","updated_at":"2026-04-13T22:32:28.402Z","avatar_url":"https://github.com/louis-e.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PSL-Leaderboard-System\nA simple and open source Leaderboard system written in PHP.\n\nIMPORTANT: PSL is insecure. It can be manipulated by spying the network traffic or by decompiling your application. This is only for demonstration.\nUse at your own risk.\n\n\n### What can you do with PSL?\n```\n-Add name and score by a simple web request\n-Get every registered name + score\n```\n\n### What do I need?\n```\n-Webserver (with PHP support)\n-MySQL Database\n```\n\n### I don't know anything about servers, am I still able to use PSL?\nOf course! With the second part of the following tutorial you can set up your own free and simple leaderboard system in 5 minutes!\n\n### Tutorial\n*Simple Explanation*\u003cbr\u003e\nDownload the five scripts which are listed down below. Then you have to change in four scripts the login data for your database and in 2 scripts you have to choose a password for the administration panel. After that, uploud the scripts to your webserver. Open in your webbrowser http://yourserver.com/setup.php. When completed, it created a table in the database for the leaderboard. Now you can add a new score with http://yourserver.com/addScore.php?name=username\u0026score=100 and get a list of all scores with http://yourserver.com/getScore.php. Below are some code samples for Unity/C#.\u003cbr\u003e\u003cbr\u003e\n\n\n*Explanation for beginners*\u003cbr\u003e\nFirstly, download the five scripts which are listed down below, you need it later. \u003cbr\u003e\nIn our example we will use https://www.000webhost.com/. They offer us a webserver and a MySQL server. Firsty you have to create an account.\nEnter a name and a password for your site and write it down so you don't forget it!\u003cbr\u003e\n\u003cimg alt=\"Step 1\" src=\"https://github.com/louis-e/PSL-Leaderboard-System/blob/master/img/step1.png\" width=\"550\" height=\"400\"\u003e\n\nIn the next step it will tell you to choose a method. You have to choose \"Uploud Your Existing Website\".\u003cbr\u003e\n\u003cimg alt=\"Step 2\" src=\"https://github.com/louis-e/PSL-Leaderboard-System/blob/master/img/step2.png\" width=\"700\" height=\"400\"\u003e\n\nAfter that it will open a new tab. It should look like in the picture below. Don't close it.\u003cbr\u003e\n\u003cimg alt=\"Step 3\" src=\"https://github.com/louis-e/PSL-Leaderboard-System/blob/master/img/step3.png\" width=\"800\" height=\"400\"\u003e\n\nGo back to your first browser tab and click on \"Manage Website\", which appears when you hover the mouse over it.\u003cbr\u003e\n\u003cimg alt=\"Step 4\" src=\"https://github.com/louis-e/PSL-Leaderboard-System/blob/master/img/step4.png\" width=\"200\" height=\"250\"\u003e\n\nOn the left panel you have to click on \"Tools\"\u003cbr\u003e\n\u003cimg alt=\"Step 5\" src=\"https://github.com/louis-e/PSL-Leaderboard-System/blob/master/img/step5.png\" width=\"225\" height=\"200\"\u003e\n\nAfter that click on \"Database Manager\"\u003cbr\u003e\n\u003cimg alt=\"Step 6\" src=\"https://github.com/louis-e/PSL-Leaderboard-System/blob/master/img/step6.png\" width=\"300\" height=\"400\"\u003e\n\nNow you should see the following panel. Click on \"New Database\"\u003cbr\u003e\n\u003cimg alt=\"Step 7\" src=\"https://github.com/louis-e/PSL-Leaderboard-System/blob/master/img/step7.png\" width=\"700\" height=\"300\"\u003e\n\nEnter a name for your database, a username and a password and click on \"Create\". Don't forget to write the database name down.\u003cbr\u003e\n\u003cimg alt=\"Step 8\" src=\"https://github.com/louis-e/PSL-Leaderboard-System/blob/master/img/step8.png\" width=\"700\" height=\"400\"\u003e\n\nNow you have to drag the five scripts and drop it into the second tab to uploud the scripts to your webserver.\u003cbr\u003e\n\u003cimg alt=\"Step 9\" src=\"https://github.com/louis-e/PSL-Leaderboard-System/blob/master/img/step9.png\" width=\"800\" height=\"400\"\u003e\n\nThen you have to select each script individually and click on \"edit\".\u003cbr\u003e\n\u003cimg alt=\"Step 10\" src=\"https://github.com/louis-e/PSL-Leaderboard-System/blob/master/img/step10.png\" width=\"900\" height=\"200\"\u003e\n\nYou have to change in each script something:\u003cbr\u003e\n*setup.php, addScore.php, getScore.php, administrationpanel.php:*\n```\n$servername should be \"localhost\"\n$username should be the username of the database\n$password should be the password of the database\n$dbname should be the name of the database\n```\n*administrationpanel.php, login.php:*\n```\n$password should be a password which you need to enter the administrationpanel\n```\n\nDon't worry, nobody can see your password in the files.\n\n\n\n\n\n\n\n### Links to the scripts you need\nThe scripts which are listed down have to be moved onto your webserver.\n\n| Name | Link |\n| ------ | ------ |\n| setup.php | https://github.com/louis-e/PSL-Leaderboard-System/blob/master/setup.php |\n| addScore.php | https://github.com/louis-e/PSL-Leaderboard-System/blob/master/addScore.php |\n| getScore.php | https://github.com/louis-e/PSL-Leaderboard-System/blob/master/getScore.php |\n| administrationpanel.php | https://github.com/louis-e/PSL-Leaderboard-System/blob/master/administrationpanel.php |\n| login.php | https://github.com/louis-e/PSL-Leaderboard-System/blob/master/login.php |\n\n\n### Unity/C# Example\n```\nusing UnityEngine;\nusing System.Net;\n\npublic class PSL : MonoBehaviour\n{\n    string url = \"https://mywebsite.com\";\n\n    public void addScores(string username, int score)\n    {\n        WebClient wc = new WebClient();\n        wc.DownloadString(url + \"/addScore.php?name=\" + username + \"\u0026score=\" + score);\n    }\n\n    public void getScores()\n    {\n        WebClient wc = new WebClient();\n        Debug.Log(wc.DownloadString(url + \"/getScore.php\").Replace(\"\u003cbr\u003e\", \"\\n\"));\n    }\n}\n```\n\n\n\n### Annotation\nThis project is completely non commercial and also open source. Feel free to develop new functions.\n\nPSL is not 100% secure. It can be manipulated by spying the network traffic or by decompiling your application. Use at your own risk.\n\nReadme V1.0\n\n\nLicense\n----\n\nMIT License\n\nCopyright (c) 2019 louis-e\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flouis-e%2Fpsl-leaderboard-system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flouis-e%2Fpsl-leaderboard-system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flouis-e%2Fpsl-leaderboard-system/lists"}