定制 nntoan/valet-pro-max 二次开发

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

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

nntoan/valet-pro-max

Composer 安装命令:

composer require nntoan/valet-pro-max

包简介

Blazing fast macOS PHP development environment

README 文档

README

Introduction

Valet Pro Max is a development environment for macOS. No Vagrant, no Docker, no /etc/hosts file. This project uses laravel/valet as a dependency.

Installation

⚠️ Valet Pro Max requires macOS and Homebrew. Before installation, you should make sure that no other programs such as Apache or Nginx are binding to your local machine's port 80.

⚠️ Valet Pro Max requires Composer to be installed. It's NOT recommended to install Composer via Homebrew.

To get started, you first need to ensure that Homebrew is up-to-date using the update command:

brew update

Next, you should use Homebrew to install PHP 8.1 (using shivammathur/php):

brew tap shivammathur/php
brew install shivammathur/php/php@8.1
brew link php@8.1 --force
brew services restart php@8.1

⚠️ If you're switching from Valet+ 2.x use the extra following steps.

  • Uninstall Valet+ with valet uninstall first.
  • Remove Valet+ package with composer global remove weprovide/valet-plus.
  • For more information how to migrate from Valet+ - check this documentation

Install Valet Pro Max 1.x-dev with composer:

composer global require nntoan/valet-pro-max:1.x-dev

Finally, you may execute the Valet Pro Max install command. This will configure and install Valet Pro Max, Nginx, DnsMasq and other services. In addition, use --help to see all installation options.

valet-pro install

The daemons Valet Pro Max depends on will be configured to launch when your system starts. Once Valet Pro Max is installed, try pinging any *.test domain on your terminal using a command such as ping foobar.test. If Valet Pro Max is installed correctly you should see this domain responding on 127.0.0.1.

Valet Pro Max features

Here are a few key differences compared to the original Valet:

  • Nginx config optimization
  • PHP extensions (mcrypt, intl, opcache, yaml, apcu, ds, imagick)
  • MySQL (mysql@5.7, mysql@8.0, mysql@8.1, mariadb)
    • DB commands (list, create, drop, reset, (re)import, export, open)
  • Mailhog (on/off mode)
  • Varnish (on/off mode)
  • Redis (on/off mode)
  • Rabbitmq (on/off mode)
  • Xdebug (on/off mode)
  • Memcache (on/off mode)
  • Elasticsearch v6, v7, v8 (on/off mode) using Docker
  • Opensearch v1, v2 (on/off mode) using Homebrew
  • Ioncube (on/off mode)
  • Rewrite/unrewrite public domain to local environment
  • DevTools
  • Binaries (magerun, magerun2, drush, wp-cli, shopware-cli, shopify-cli)
  • Log rotation for Valet Pro Max services (nginx, mysql, phpfpm). To prevent big logfiles consume all disk storage.

Changes vs Valet+

  • Use command valet-pro instead of valet.
  • Rename .env.valet to .valet-env.php.
  • Use command valet-pro elasticsearch|es use <version> instead of valet use elasticsearch|es <version>.
  • Use 127.0.0.1 as Redis host instead of /tmp/redis.sock.
  • Choose which binaries to install (default all) and self-update on valet-pro install command.
  • Adds dependency on Docker for Elasticsearch, see https://docs.docker.com/desktop/install/mac-install/
  • Supports Opensearch using Homebrew maintainer tap.

Credits

This project is a fork of weprovide/valet-plus. Thanks to all of the contributors, especially the original authors:

nntoan/valet-pro-max 适用场景与选型建议

nntoan/valet-pro-max 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 28 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 04 月 15 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 nntoan/valet-pro-max 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 nntoan/valet-pro-max 我们能提供哪些服务?
定制开发 / 二次开发

基于 nntoan/valet-pro-max 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-04-15