承接 torfs-ict/lando-symfony 相关项目开发

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

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

torfs-ict/lando-symfony

Composer 安装命令:

composer create-project torfs-ict/lando-symfony

包简介

Lando development environment generator for Symfony

README 文档

README

This composer package allows you to easily configure a Lando development environment for Symfony projects.

Instead of having to copy .lando.yml for every project, you can start with a clean lando.yml file with only a few required settings. Using the builder you can then generate the full .lando.yml file which will actually be used to spin up your development environment.

Development environment info

Included services

  1. Nginx webserver
  2. PHP 7.1 (Xdebug ready)
  3. MySQL database
  4. Node.js container
  5. Blackfire profiler
  6. phpMyAdmin
  7. ELK stack
  8. Mailhog
  9. Memcached
  10. Headless chrome
  11. Unoconv
  12. PDFtk

Included Lando tooling

  • sf: Run Symfony console commands
    • target: PHP
    • alias for: $ php bin/console
    • example: $ lando sf about
  • diff: Generate a database migration by comparing your current database to your mapping information
    • target: PHP
    • alias for: $ php bin/console doctrine:migrations:diff
    • example: $ lando diff
  • migrate: Execute a database migration to a specified version or the latest available version
    • target: PHP
    • alias for: $ php bin/console doctrine:migrations:migrate
    • example: $ lando migrate prev
  • cache: Clears the Symfony cache
    • target: PHP
    • alias for: $ php bin/console cache:clear
    • example: $ lando cache
  • warmup: Warms up an empty cache
    • target: PHP
    • alias for: $ php bin/console cache:warmup
    • example: $ lando warmup
  • blackfire: Profile a Symfony console command using blackfire
    • target: PHP
    • alias for: $ blackfire run php bin/console
    • example: $ lando blackfire about
  • yarn: Run the Yarn package manager
    • target: Node.js
    • alias for: $ yarn
    • example: $ lando yarn add bootstrap
  • encore: Runs Webpack Encore
    • target: Node.js
    • alias for: $ node_modules/.bin/encore
    • example: $ lando encore dev --watch

Usage

Installing

Install the package with composer, and make sure to have a .env file in your project root containing all variables defined in .env.dist.

$ composer require --dev torfs-ict/lando-symfony

Setting up

A sample lando.yml file can be found in lando.yml.dist. If this file doesn't exist, you can have the builder create one for you.

name: my-project

proxy:
  nginx:
    - "my-project.dev.local.torfs.org"
  mailhog:
    - "my-project.mhg.local.torfs.org"
  phpmyadmin:
    - "my-project.pma.local.torfs.org"
  elk:
    - 'my-project.elk.local.torfs.org:5601'

tooling:
  worker:
    service: appserver
    description: Runs the background worker broker
    cmd: php bin/console app:worker --no-debug -vvv

Required settings

The only mandatory settings are the project name and proxy domains. Should your project have removed a pre-defined service, you should omit this from the proxy configuration as well.

Customizing the environment

When building the environment, your lando.yml file will be merged with the default configuration file, so you can customize as you see fit.

Removing services

Should you want to remove a service, you can simple set it to null in your lando.yml file. The example below illustrates how to remove the elk service.

Do note that if you remove a service which requires a proxy domain, you need to remote the service from the proxy settings as well.

name: my-project

proxy:
  nginx:
    - "my-project.dev.local.torfs.org"
  mailhog:
    - "my-project.mhg.local.torfs.org"
  phpmyadmin:
    - "my-project.pma.local.torfs.org"

services:
  elk: ~

Building the environment

Once your lando.yml and .env files are in place (or at least the .env file) you can generate the actual .lando.yml file by running the build script.

$ vendor/bin/lando

torfs-ict/lando-symfony 适用场景与选型建议

torfs-ict/lando-symfony 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.46k 次下载、GitHub Stars 达 4, 最近一次更新时间为 2018 年 10 月 01 日, 在 PHP 生态内属于活跃度较高的组件。

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

围绕 torfs-ict/lando-symfony 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-10-01