定制 salehnevergiveup/rapix-installer 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

salehnevergiveup/rapix-installer

最新稳定版本:v1.0.0

Composer 安装命令:

composer require salehnevergiveup/rapix-installer

包简介

Rapix PHP Framework installer to quickly create new Rapix projects.

README 文档

README

Rapix Logo

⚡ Lightning-fast PHP Framework Installer

InstallationUsageCommandsRequirements

About

Rapix Installer is a command-line tool designed to quickly scaffold new Rapix PHP Framework projects. With a single command, you can create a fully configured Rapix project with all dependencies installed and ready to go.

Requirements

  • PHP >= 8.3
  • Composer
  • Git

Installation

Install the Rapix Installer globally via Composer:

composer global require salehnevergiveup/rapix-installer

Make sure your global Composer bin directory is in your system's PATH. You can add it by including this in your shell configuration file (~/.bashrc, ~/.zshrc, etc.):

export PATH="$HOME/.composer/vendor/bin:$PATH"

After installation, verify it's working:

rapix version

Usage

Creating a New Project

To create a new Rapix project, use the new command followed by your desired project name:

rapix new my-awesome-project

This command will:

  1. ✅ Validate the project name
  2. 📁 Create a new directory with your project name
  3. 📦 Clone the Rapix framework repository
  4. 🔧 Install all Composer dependencies automatically

Example:

rapix new blog-api
cd blog-api

Commands

new

Create a new Rapix project.

rapix new <project-name>

Arguments:

  • <project-name> - The name of your new project (required)

Example:

rapix new ecommerce-platform

version

Display the current version of Rapix Installer.

rapix version

Output:

Rapix Installer v1.0.0

help

Display the help menu with all available commands.

rapix help

Output:

Rapix Installer - commands
  rapix new <project name>    create new project
  rapix version               list rapix versions
  rapix help                  list help list

Project Structure

After creating a new project, you'll have the following structure:

my-project/
├── app/
├── config/
├── public/
├── routes/
├── vendor/
├── composer.json
└── ...

Validation

The installer includes built-in validation to ensure smooth project creation:

  • ✅ Checks if project name is provided
  • ✅ Verifies the directory doesn't already exist
  • ✅ Ensures all required commands (git, composer) are available

Troubleshooting

Command not found

If you receive a "command not found" error after installation:

  1. Ensure Composer's global bin directory is in your PATH
  2. Run composer global config bin-dir --absolute to find the directory
  3. Add that directory to your PATH

Permission denied

If you encounter permission issues:

chmod +x ~/.composer/vendor/bin/rapix

Project already exists

If you try to create a project with a name that already exists in the current directory, the installer will notify you and abort the operation.

Development

Setting Up for Development

git clone https://github.com/salehnevergiveup/rapix-installer.git
cd rapix-installer
composer install

Running Tests

composer test

Code Formatting

composer format

Static Analysis

composer analyse

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Author

Saleh Al-Dhaheri

Made with ❤️ by Saleh Al-Dhaheri

⚡ Build something amazing with Rapix!

统计信息

  • 总下载量: 1
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-10-11