pack-php/pack
最新稳定版本:1.0.0
Composer 安装命令:
composer require pack-php/pack
包简介
A Laravel Artisan command to search, preview, and install PHP packages from Packagist.
README 文档
README
A Laravel Artisan command to search, preview, and install PHP packages from Packagist.
🚀 Features
- Search for PHP packages directly from your terminal.
- Preview package details before installing.
- Open the package page in your browser.
- Install selected packages with Composer.
📦 Installation
You can install the package via Composer:
composer require pack-php/pack
⚡ Usage
Search and Install a Package
Run the following command:
php artisan pack:install
- Enter a package name: The command will ask you to enter a package name.
- Browse results: A list of matching packages from Packagist will be displayed.
- Select a package: Use arrow keys or enter the number to choose a package.
- Open the package page (Optional): You can open the package's Packagist URL in your browser.
- Confirm installation: The command will ask if you want to install the package.
- Installation starts: If confirmed, Composer will install the package.
Example Usage:
php artisan pack:install
What is your package name? laravel-uuid
1. ramsey/uuid
A PHP library for generating and working with universally unique identifiers (UUIDs).
2. spatie/laravel-uuid
A simple Laravel package for handling UUIDs.
Show more results? (yes/no) no
Select a package: spatie/laravel-uuid - A simple Laravel package for handling UUIDs.
You selected: spatie/laravel-uuid
Do you want to open https://packagist.org/packages/spatie/laravel-uuid? (yes/no) yes
Opening URL...
Do you want to install spatie/laravel-uuid? (yes/no) yes
Installing spatie/laravel-uuid...
Package spatie/laravel-uuid installed successfully.
🧪 Testing
You can run tests using PHPUnit:
vendor/bin/phpunit
📝 License
This package is open-source and available under the MIT License.
统计信息
- 总下载量: 12
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-02-03