{"id":18386281,"url":"https://github.com/bethropolis/url-shortener","last_synced_at":"2025-06-14T09:32:39.484Z","repository":{"id":158866953,"uuid":"320512416","full_name":"bethropolis/url-shortener","owner":"bethropolis","description":"shrink your url with this  simple PHP made url shortener","archived":false,"fork":false,"pushed_at":"2020-12-11T13:28:06.000Z","size":1548,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T03:54:30.028Z","etag":null,"topics":["php","url-shortener"],"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/bethropolis.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":"2020-12-11T08:26:25.000Z","updated_at":"2023-07-15T21:18:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"79d76b6f-09dc-4042-822d-b7d6d33672d7","html_url":"https://github.com/bethropolis/url-shortener","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/bethropolis/url-shortener","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bethropolis%2Furl-shortener","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bethropolis%2Furl-shortener/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bethropolis%2Furl-shortener/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bethropolis%2Furl-shortener/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bethropolis","download_url":"https://codeload.github.com/bethropolis/url-shortener/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bethropolis%2Furl-shortener/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259793966,"owners_count":22912221,"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":["php","url-shortener"],"created_at":"2024-11-06T01:21:20.598Z","updated_at":"2025-06-14T09:32:39.437Z","avatar_url":"https://github.com/bethropolis.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Url Shortener\n\n## table of content\n\n* [installation](#installation)\n  * [requirement](#requirement)\n  * [getting started](#getting-started)\n* [features](#features)\n  * [main page](#main-page)\n  * [dashboard](#dashboard)\n  * [dashboard features](#dashboard-features)\n  * [dashboard shortcuts](#dashboard-shortcuts)\n* [future updates](#future-updates)\n* [behind it](#behind-it)\n* [outside libraries](outside-libraries)\n* [license](#license)\n\n\n## installation\n\n### requirement\n\n ```md\n  php 7+\n  mysqli\n  mysql database\n  phpmyadmin\n  apache server\n```\n\n\u003e all this can be archived by downloading a server like `wamp` or `xampp`\n\n### getting started\n the files:\n\n```php\n css -\n      |- dashboard.css\n      |- style.css\n inc -                 // the back engine\n      |- data.inc.php\n      |- dbh.inc.php  // the  connection lives here\n      |- delete.inc.php \n      |- edit.inc.php\n js -               // mostly consist of  requests\n      |- cookie.js\n      |- dashboard.js\n      |- index.js\n      |- loader.js  // had to have it's own file right\n      |- post.js\n lib -               // fellow wizards and witches who helped\n      |- font-awsome\n      |- jquery\n      |- materialize\n sql -               // the storage pack\n      |- urlShortener.json\n      |- urlShortener.sql\ntest -                // the fake battle fields\n      |- edit.php\n      |- test.php\n .htaccess     // link prettifier (if a word)\n dashboard.php  // the control tower\n index.php     // the main field\n README.md    // just added him here\n```\nYou will have to import the `urlShortener.sql` or `.json` file from the `sql` folder to your database.\u003cbr/\u003e\nand you are all set.\u003cbr\u003e\u003cbr\u003e\n\n if you would like to set a different database name change the `dbh.inc.php` file.\n\n```php\n\u003c?php\n  $servername = \"localhost\";\n  $dBUsername = \"root\";      // username for your database\n  $dBPassword = \"\";          // password for your database  \n  $dBName = \"urlShortener\";  # change this \n\n  $conn = mysqli_connect($servername, $dBUsername, $dBPassword, $dBName);\n\n```\n\n## features\n\n### main page\n   \u003cimg src=\"./public/image/url-shortener.png\" align=\"center\"\u003e\n   \u003cp\u003eThe main page consist of a form and below it is a list of your 4 previously shorten urls\u003c/p\u003e\n\n### dashboard\n   \u003cimg src=\"./public/image/dashboard.png\" align=\"center\"\u003e\n \u003cp\u003eThe dashboard is where you have full control of your links \u003cbr/\u003e\n   on the left is the side bar and the main contents are displayed on the right \n \u003c/p\u003e\u003cbr/\u003e\n\n### dashboard features\n you can perform the following on the dashboard\n   * create a short url \u003cbr/\u003e\n   \u003cimg src=\"./public/image/add.png\" align=\"center\"\u003e  \u003cbr/\u003e\n   * display urls \u003cbr/\u003e \n   \u003cimg src=\"./public/image/url.png\" align=\"center\"\u003e  \u003cbr/\u003e\n   * edit url \u003cbr/\u003e\n   * delete url\n\n### dashboard shortcuts\n`insert` or `CTRL+ i` to add a new url \n\n\u003e just that maybe more to come\n\n## future updates\n---\nthis are some of the features to be or might be added \u003cbr/\u003e\n\n * settings/options page\n * login and sign up support\n * ip tracking\n * fast redirection\n * referer track\n\n\u003e you name it and I will try to add it.\n## outside libraries\nthere were some libraries used, namely\u003cbr/\u003e\n`font awsome ` for the awsome icons used\u003cbr\u003e\n`jquery` what would I do without this made the work even easier\u003cbr\u003e\n`materialize` the king of the day, if you have ever used it you would know 90% of this project is style by this.   \n\n## behind it\n\n\n## License\n Isn't  \u003cb\u003eMIT\u003cb\u003e license the best. ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbethropolis%2Furl-shortener","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbethropolis%2Furl-shortener","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbethropolis%2Furl-shortener/lists"}