{"id":24044615,"url":"https://github.com/vinugawade/s-php","last_synced_at":"2025-04-22T01:39:39.099Z","repository":{"id":133197802,"uuid":"523493059","full_name":"vinugawade/s-php","owner":"vinugawade","description":"Easily switch PHP versions on Linux.","archived":false,"fork":false,"pushed_at":"2024-01-22T03:33:22.000Z","size":390,"stargazers_count":12,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-20T01:15:05.987Z","etag":null,"topics":["apache2","bash","bash-script","cli","command-line-tool","github","linux","macos","open-source","opensource","php","shell-script","utility"],"latest_commit_sha":null,"homepage":"https://vinugawade.github.io/s-php","language":"Shell","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/vinugawade.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":"2022-08-10T20:50:31.000Z","updated_at":"2024-12-03T14:24:49.000Z","dependencies_parsed_at":"2024-01-22T04:40:56.467Z","dependency_job_id":null,"html_url":"https://github.com/vinugawade/s-php","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinugawade%2Fs-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinugawade%2Fs-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinugawade%2Fs-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinugawade%2Fs-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vinugawade","download_url":"https://codeload.github.com/vinugawade/s-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249834793,"owners_count":21331989,"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":["apache2","bash","bash-script","cli","command-line-tool","github","linux","macos","open-source","opensource","php","shell-script","utility"],"created_at":"2025-01-08T23:32:28.967Z","updated_at":"2025-04-20T01:15:22.040Z","avatar_url":"https://github.com/vinugawade.png","language":"Shell","readme":"\u003ch1 align=\"center\"\u003e\n  \u003cbr\u003e\n    \u003cimg src=\"Logo.png\" alt=\"logo\" width=\"200\"\u003e\n  \u003cbr\u003e\n\u003c/h1\u003e\n\n# s-php :- version switcher for linux\n\n![OS](https://img.shields.io/badge/Linux-white?style=flat-square\u0026logo=linux\u0026logoColor=black)\n![Bash Script](https://img.shields.io/badge/Bash_Script-121011?style=flat-square\u0026logo=gnu-bash\u0026logoColor=white)\n![GitHub issues](https://img.shields.io/github/issues/vinugawade/s-php?style=flat-square)\n![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/vinugawade/s-php?style=flat-square)\n![GitHub last commit](https://img.shields.io/github/last-commit/vinugawade/s-php?style=flat-square)\n\nIf you're on linux system with PHP installed via apt, you may be looking for an easy way to switch between PHP versions (5.6, 7.0, 7.1, 7.2 etc) without executing multiple commands manually. Well, this package is it.\n\n## Installation\n\nClone [this](https://github.com/vinugawade/s-php) repository to your local machine using below command.\n\n```bash\ngit clone https://github.com/vinugawade/s-php.git\n```\n\nMove the script using below command.\n\n```bash\nsudo mv /location/of/file /usr/local/bin\n```\n\nAllow everyone to execute the script, use below command.\n\n```bash\nsudo chmod +x /location/of/file\n```\n\nOR\n\n```bash\nsudo chmod 0755 /location/of/file\n```\n\nAdd `/usr/local/bin` to your `$PATH`. If you use the `Bash` shell,Then you can do this by running below command.\n\n```bash\nexport PATH=$PATH:/usr/local/bin\n```\n\nOR\n\n```bash\nexport PATH=$PATH:/location/of/file\n```\n\nThis will set the variable name: potentially in a file called `~/.bash_profile`, `~/.bashrc` or `~/.profile`. The difference between these files is (primarily) when they get read by the shell. If you're not sure where to put it, then `~/.bashrc` is a good choice.\n\n\u003e **You may need to restart your shell for this to take effect.**\n\n## Usage\n\nNow you can use the script from anywhere in `Terminal`. below are some examples.\n\n```bash\ns-php 5.6\n```\n\n```bash\ns-php 7.4\n```\n\n```bash\ns-php 8.0\n```\n\nCheck below attached `GIF`.\n![Run s-php script](https://raw.githubusercontent.com/vinugawade/s-php/7e6100d0f54c87ecc397ca320de737ad6df87e1f/docs/assets/images/Use_of_script.gif)\n\n## Mac User?\n\n\u003e **Check this** :- [sphp](https://github.com/jschaedl/sphp-osx) Repository.\n\n## Contribution\n\n### Step 1\n\n- **Option 1**\n  - 🍴 Fork this repo!\n\n- **Option 2**\n  - 👯 Clone [this](https://github.com/vinugawade/s-php) repository to your local machine.\n\n### Step 2\n\n- Make Changes! 🔨 ✏️ ⌨️\n\n### Step 3\n\n- 🔃 Create a new `Pull Request`.\n\n## Maintainer ✨\n\nConnect with me :-\n\u003cp align=\"left\"\u003e\n\u003ca href=\"https://github.com/vinugawade\" target=\"_blank\"\u003e\u003cimg src=\"https://cdn.jsdelivr.net/npm/simple-icons@3.0.1/icons/github.svg\" alt=\"vinugawade\" height=\"30\" width=\"40\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://twitter.com/vinugawade\" target=\"_blank\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/rahuldkjain/github-profile-readme-generator/master/src/images/icons/Social/twitter.svg\" alt=\"vinugawade\" height=\"30\" width=\"40\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://linkedin.com/in/vinu-gawade\" target=\"_blank\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/rahuldkjain/github-profile-readme-generator/master/src/images/icons/Social/linked-in-alt.svg\" alt=\"vinu-gawade\" height=\"30\" width=\"40\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://instagram.com/vinugawadevr\" target=\"_blank\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/rahuldkjain/github-profile-readme-generator/master/src/images/icons/Social/instagram.svg\" alt=\"vinugawadevr\" height=\"30\" width=\"40\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n![Made With](https://ForTheBadge.com/images/badges/built-with-love.svg)\n\nBy [Vinay Gawade](https://github.com/vinugawade).\n\n\u003ca href=\"https://www.linkedin.com/in/vinu-gawade\" target=\"_blank\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/vinugawade/s-php/7e6100d0f54c87ecc397ca320de737ad6df87e1f/docs/assets/images/media/LinkedIn.png\" alt=\"LinkedIn QR\" width=\"150\"\u003e\u003c/a\u003e\n\u003ca href=\"https://www.buymeacoffee.com/vinaygawade\" target=\"_blank\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/vinugawade/s-php/7e6100d0f54c87ecc397ca320de737ad6df87e1f/docs/assets/images/media/Bmc.png\" alt=\"Buy Me Coffe QR\" width=\"150\"\u003e\u003c/a\u003e\n\u003ca href=\"https://twitter.com/VinuGawade\" target=\"_blank\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/vinugawade/s-php/7e6100d0f54c87ecc397ca320de737ad6df87e1f/docs/assets/images/media/Twitter.png\" alt=\"Twitter QR\" width=\"150\"\u003e\u003c/a\u003e\n\n\u003ca href=\"https://www.buymeacoffee.com/vinaygawade\" target=\"_blank\"\u003e\u003cimg src=\"https://cdn.buymeacoffee.com/buttons/v2/default-blue.png\" alt=\"Buy Me A Coffee\" style=\"height: 60px !important;width: 217px !important;\" \u003e\u003c/a\u003e\n\n---\n\n## License\n\nCheck [here](LICENSE).\n\n![LICENSE](https://img.shields.io/github/license/vinugawade/ur-cache-cleaner?style=flat-square)\n","funding_links":["https://www.buymeacoffee.com/vinaygawade"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvinugawade%2Fs-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvinugawade%2Fs-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvinugawade%2Fs-php/lists"}