{"id":19065244,"url":"https://github.com/codad5/xupg-rs","last_synced_at":"2026-05-15T05:30:15.601Z","repository":{"id":258148744,"uuid":"840528552","full_name":"codad5/xupg-rs","owner":"codad5","description":"(WIP) update you xampp , Paragon modules and with ease","archived":false,"fork":false,"pushed_at":"2025-02-07T16:40:25.000Z","size":110,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-07T17:29:11.876Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://codad5.github.io/xupg-rs/","language":"Rust","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/codad5.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":"2024-08-09T23:32:14.000Z","updated_at":"2025-02-07T16:40:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"be9b70dd-fac8-4ec5-8136-88af48ae28f6","html_url":"https://github.com/codad5/xupg-rs","commit_stats":null,"previous_names":["codad5/xupg-rs"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codad5%2Fxupg-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codad5%2Fxupg-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codad5%2Fxupg-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codad5%2Fxupg-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codad5","download_url":"https://codeload.github.com/codad5/xupg-rs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240118432,"owners_count":19750491,"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":[],"created_at":"2024-11-09T00:49:06.855Z","updated_at":"2026-05-15T05:30:15.489Z","avatar_url":"https://github.com/codad5.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n---\n\n# **xupg-rs**\n\n**xupg-rs** is a unified CLI tool for managing and updating versions of **PHP, MySQL, Node.js**, and more. Whether you use standalone tools or environments like **XAMPP, Laragon**, or **Node.js**, xupg-rs helps you stay organized by simplifying version management.\n\n---\n\n## **Features**\n\n- List installed and available tool versions (locally and online).\n- Install specific versions of tools to custom paths.\n- Manage PHP versions within XAMPP seamlessly.\n- Support for multiple environments: XAMPP, Laragon, Node.js, etc.\n\n---\n\n## **Installation**\n\n### Option 1: Install via `cargo` from Crates.io  \n(Requires Rust and Cargo installed on your machine.)  \n\n```bash\ncargo install xupg-rs\n```\n\nVerify the installation:\n\n```bash\nxupg --version\n```\n\n---\n\n### Option 2: Build and Install from Source\n\nIf you want to build the project from the source:\n\n1. **Clone the repository:**\n\n   ```bash\n   git clone https://github.com/codad5/xupg-rs.git\n   cd xupg-rs\n   ```\n\n2. **Build and install the project with Cargo:**\n\n   ```bash\n   cargo install --path .\n   ```\n\n   This will build the binary and place it in your Cargo bin directory (`~/.cargo/bin` by default).\n\n3. **Verify the installation:**\n\n   ```bash\n   xupg --version\n   ```\n\n   If Cargo’s bin directory isn’t in your `PATH`, you may need to add it:  \n\n   ```bash\n   export PATH=\"$HOME/.cargo/bin:$PATH\"\n   ```\n\n---\n\n## **Usage**\n\nHere are some common commands for managing tools using `xupg-rs`.\n\n### 1. **List Available Versions**\n\n```bash\nxupg list -p\n```\n\n- `-p, --php`: List all available PHP versions.\n- `-o, --online`: Fetch online versions for download.\n\nExample:\n\n```bash\nxupg list -p -o\n```\n\nThis lists online-available PHP versions.\n\n```bash\nxupg list -p\n```\nThis lists locally-installed PHP versions.\n\n---\n\n### 2. **Install a Specific Tool Version**\n\n```bash\nxupg install -p \u003cversion\u003e -pa \u003cpath\u003e\n```\n\n- `-p, --php \u003cversion\u003e`: Install a specific PHP version.\n- `-pa, --path \u003cpath\u003e`: (Optional) Specify installation path.\n\nExample:\n\n```bash\nxupg install -p 8.1.0\n```\n\nThis installs PHP version 8.1.0 to the default path.\n\n---\n\n### 3. **Set PHP Version for XAMPP**\n\n```bash\nxupg xampp php -s \u003cversion\u003e -p \u003cpath\u003e\n```\n\n- `-s, --set \u003cversion\u003e`: Set a specific PHP version for XAMPP.\n- `-p, --path [path]`: (Optional) Specify the XAMPP path.\n\nExample:\n\n```bash\nxupg xampp php -s 8.0.0 -p c:/zampp/\n```\n\nThis sets PHP version 8.0.0 as the default for XAMPP installed at `c:/zampp/`.\n\n---\n\n### 4. **Install and Set PHP for XAMPP Automatically**\n\nTo install PHP 7.4.0 directly into XAMPP’s PHP directory:\n\n```bash\nxupg xampp php -s 7.4.0\n```\nThis would install PHP 7.4.0 and set it as the default PHP version for XAMPP.\n- On Windows, the default XAMPP path is `C:\\xampp`.\n- On Linux, the default XAMPP path is `/opt/lampp`.\n\n\n---\n\n---\n\n## **Dependencies**\n\n- **`cached`**: Caches data for improved performance.\n- **`colored`**: Adds color to terminal output.\n- **`dirs-next`**: Manages directories and paths.\n- **`fli`**: A framework for building CLI applications.\n- **`indicatif`**: Displays progress bars during installation.\n- **`reqwest`**: Handles HTTP requests (e.g., fetching online versions).\n- **`serde`** and **`serde_json`**: Parse JSON data.\n- **`tokio`**: Supports asynchronous operations.\n- **`zip`**: Manages compressed files during downloads.\n\n---\n\n## **Contributing**\n\n1. **Fork the repository** on GitHub.\n2. **Create a new branch**:  \n   ```bash\n   git checkout -b feature-branch\n   ```\n3. **Make your changes and commit**:  \n   ```bash\n   git commit -m \"Add new feature\"\n   ```\n4. **Push your branch**:  \n   ```bash\n   git push origin feature-branch\n   ```\n5. **Open a Pull Request** on GitHub.\n\n---\n\n## **License**\n\nThis project is licensed under the **MIT License**. See the `LICENSE` file for more information.\n\n---\n\n## **Contact**\n\n- **GitHub**: [codad5](https://github.com/codad5)  \n- **Portfolio**: [https://codad5.me](https://codad5.me)  \n- **Twitter**: [@codad5_](https://twitter.com/codad5_)\n\n---\n\n## **Future Improvements**\n\n- Add **Docker support** for managing tools in containers.\n- Enhance **Windows support** for Laragon integration.\n- Promote the tool on **`crates.io`** for community feedback and adoption.\n\n---\n\nWith **xupg-rs**, managing versions across environments becomes straightforward and efficient. Install it today and simplify your workflow! 🚀\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodad5%2Fxupg-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodad5%2Fxupg-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodad5%2Fxupg-rs/lists"}