amohamed/autoportserve 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

amohamed/autoportserve

最新稳定版本:v1.0.1

Composer 安装命令:

composer require amohamed/autoportserve

包简介

A Laravel package that provides an enhanced serve command.

README 文档

README

About

AutoPortServe is a Laravel package that helps you start your Laravel development server and npm development server on available ports dynamically. This package will automatically scan and find a free port, starting from 8000, for the Laravel server and run the npm development server in parallel. It's a handy tool for full-stack developers who work with multiple Laravel applications and require running npm tasks simultaneously.

Installation

You can install the package via composer:

composer require amohamed/autoportserve

Register the service provider in your config/app.php file:

'providers' => [
    // ...
    Amohamed\AutoPortServe\AutoPortServeServiceProvider::class,
];

Usage

Once you have installed the package, you can use the serve:dynamic artisan command to start your Laravel server on an available port:

php artisan serve:dynamic

The command will print out a message with the URL where your application is being served, such as:

Laravel development server started: <http://127.0.0.1:8000>

Features

1. Dynamic port selection for Laravel server starting from 8000
2. Runs npm development server in parallel
3. Easy to use, integrates seamlessly with the native php artisan serve command
4. Perfect for full-stack developers working on multiple Laravel projects

Testing

You can run the tests with:

vendor/bin/phpunit

Contributing

Contributions are welcome! Please feel free to submit a pull request.

License

This package is open-sourced software licensed under the MIT license.

Note: Be sure to replace any placeholder information with the actual details about your package. For example, you might have a different command to run tests, or you might want to include more detailed information about how to contribute to your package.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-05-16