承接 pack-php/pack 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

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
  1. Enter a package name: The command will ask you to enter a package name.
  2. Browse results: A list of matching packages from Packagist will be displayed.
  3. Select a package: Use arrow keys or enter the number to choose a package.
  4. Open the package page (Optional): You can open the package's Packagist URL in your browser.
  5. Confirm installation: The command will ask if you want to install the package.
  6. 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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-02-03