承接 clntdev/servd 相关项目开发

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

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

clntdev/servd

Composer 安装命令:

composer create-project clntdev/servd

包简介

Docker PHP Development Environment

README 文档

README

Stable Build CI Status Code Coverage

ServD is a Docker PHP development environment heavily inspired by Laravel Valet and Laradock, it supports multiple projects within a working directory and primarily runs on [Alpine Linux](https://alpinelinux.org/).

In its current form, it installs the majority of PHP Extensions available, including xdebug which currently adds slower performance than expected. This will change and these extensions will be able to be toggled in a future release.

It offers PHP, Node.js, Database Software, Elasticsearch and PHP Composer version selection making it easy to change the environment to suit your needs.

Installation

Install via composer globally by running composer global require clntdev/servd - once this has finished type servd into the CLI and ensure it returns a list of commands.

  • Run the servd install command to setup required services and generate the .servd folder which will be located within the user home directory.
  • Run the servd start command after completing the installation steps, this will pull/build images and then start up the configured services.

Commands

List of commands:

servd install

  • Creates sqlite database
  • Prompt for preferred options such as PHP version/Node Version and Composer Version
  • Prompt for confirmation of working directory, choose current directory or full path can be specified

servd set:timezone

  • Set the timezone to be used by PHP and the core docker container
  • This must be a valid IANA Timezone such as Europe/London, America/New_York etc
  • The default timezone is UTC

servd start

  • Start docker containers

servd stop

  • Stop docker containers

servd restart

  • Restart docker containers
  • Rebuild docker images with optional --rebuild flag

servd rebuild

  • Rebuild docker containers
  • Update images with optional --update flag
  • Rebuild/Update a specific container by specifying name as an argument: servd rebuild mysql

servd configure

  • Regenerates configuration files and directory structures

servd use x.x

  • Stops containers
  • Switch PHP version to specified (7.4, 8.0, 8.1 supported)
  • Rebuilds configuration and docker containers
  • Starts docker containers

servd secure

  • Generates certificates and configures the current project for HTTPS, rebuilding config files and restarting services
  • Note: You will need to ensure the created servdCA.crt CA is trusted by your machine

servd unsecure

  • Removes existing certificate files for a project and marks it as non secure, rebuilding config files and restarting services

servd secure:trust

  • macOS (requires sudo) - this command will attempt to add the CA certificate generated to the system
  • Linux & Windows Users - you will need to manually add the servdCA.crt certificate authority file to your computer's certificate store

Note for Firefox users: You may need to trust the servdCA.crt file manually by importing it into Firefox's own certificate store (if site is secure in OS browser but not in Firefox then this is likely the reason why)

servd park

  • Adds/Changes the project directory to the current directory

servd run "{command}"

  • Run given command in docker container using current directory name as project directory name, remember to wrap command in quotes if more than one word i.e. servd run "php artisan cache:clear"

servd cli {container(optional)}

  • Open an interactive shell into the given container or the servd_core container by default if none specified

Supported Drivers

  • Laravel
  • Wordpress
  • Drupal
  • GenericHtml (basic config)
  • GenericPhp (basic config with php-fpm)

Other

Built with Laravel Zero

clntdev/servd 适用场景与选型建议

clntdev/servd 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 52 次下载、GitHub Stars 达 2, 最近一次更新时间为 2022 年 03 月 24 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「cli」 「console」 「docker」 「valet」 「servd」 「localdev」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

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

围绕 clntdev/servd 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-03-24