hilenium/homestead-symfony2 问题修复 & 功能扩展

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

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

hilenium/homestead-symfony2

Composer 安装命令:

composer require hilenium/homestead-symfony2

包简介

Homestead vagrant virtual box customization for Symfony2 applications. Ubuntu 14.04, PHP5.6 with Intl.so, MySQL and Nginx. Apache2 is also installed.

README 文档

README

This is a fork of the Laravel Homestead development environment customized for Symfony2 by Hilenium.

Specifications

  • Ubuntu 14.04
  • PHP 5.6
  • MySQL
  • Redis
  • phpmyadmin
  • Intl extension is pre-installed (required for symfony-icu)
  • Imagick extension
  • Nginx
  • Apache2 pre-installed (but not configured out of the box)
  • Memchached
  • NFS Shared folder (by default)

Requirements

The Homestead requires Vagrant, Virtualbox to work.

phpmyadmin Credentials

Login at [http://phpmyadmin.app]

username: root
password: secret

MySQL Credentials

username: homestead
password: secret

Installation

Install Homestead-Symfony2 with composer

composer global require hilenium/homestead-symfony2

Usage

Initialization

To initialize a machine use the init option. This will install this Symfony2 box

homestead init

Configuration

To configure your environment use the edit option.

homestead edit

Parameters

ip

The ip address of the Homestead machine to your system.

memory

The amount of RAM memory of the virtual machine.

cpus

The number of virtual CPU's of the virtual machine.

authorize

The SSL key to allow the communication between virtual and host machines.

folders

The folder mapping from your host machine (map) to be available on the virtual machine (to).

sites

The sites you want to configure on the virtual machine. The configuration will be executed where you run the homestead provision or homestead up --provision commands.

databases

The databases you want to automatically create on the virtual machine.

variables

The environment variables you want available on the virtual machine.

Set your SSL key

To allow the access over SSH you must set your SSL key.

ssh-keygen -t rsa -C "you@hilenium.com"

Example

This is an example of the implementation of a Symfony2 application in the symfony.app url.

  1. Associate the domain to the /etc/hosts file to the 192.168.10.10 IP address
(...)
192.168.10.10  phpadmin.app
192.168.10.10  hilenium.local
(...)
  1. Edit the homestead to make the new application available for your host system
---
ip: "192.168.10.10"
memory: 2048
cpus: 1

authorize: ~/.ssh/id_rsa.pub

keys:
    - ~/.ssh/id_rsa

folders:
    - map: ~/Code
      to: /home/vagrant/Sites

sites:
    - map: phpmyadmin.app
      to: /home/vagrant/Code/phpmyadmin
    - map: symfony.app
      to: /home/vagrant/Code/hilenium-application/web

Commands

Initialize the structure

homestead init

Edit the configuration

homestead edit

Start the machine

homestead up

Stop the machine

homestead halt

Provision the configuration

homestead provision

Access te machine over SSH

homestead ssh

Official documentation

The official Laravel local development environment.

Official documentation is located here.

hilenium/homestead-symfony2 适用场景与选型建议

hilenium/homestead-symfony2 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 112 次下载、GitHub Stars 达 6, 最近一次更新时间为 2015 年 07 月 12 日, 在 PHP 生态内属于活跃度较高的组件。

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

围绕 hilenium/homestead-symfony2 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

  • Stars: 6
  • Watchers: 2
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-07-12