2017 © Pedro Peláez
 

symfony-bundle homestead-bundle

Integrate Laravel Homestead VM seamlessly with your Symfony Apps

image

pfuhrmann/homestead-bundle

Integrate Laravel Homestead VM seamlessly with your Symfony Apps

  • Thursday, September 3, 2015
  • by pfuhrmann
  • Repository
  • 1 Watchers
  • 0 Stars
  • 44 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

PFHomesteadBundle

Bundle for configuring and using Laravel Homestead VM seamlessly within your Symfony projects
- Based on amazing laravel/homestead package, (*1)

Install

Use Composer for installing

$ composer require pfuhrmann/homestead-bundle

Update app/AppKernel.php

<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...

            new PF\HomesteadBundle\PFHomesteadBundle(),
        );

        // ...
    }

    // ...
}

Configuration

Config options are identical to those described in Homestead docs, (*2)

Add Homestead configuration to app/config/config_dev.yml

pf_homestead:
    ip: "192.168.10.10"
    memory: 2048
    cpus: 1
    provider: virtualbox
    authorize: ~/.ssh/id_rsa.pub
    name: vagrant
    hostname: homestead
    keys:
        - ~/.ssh/id_rsa
    folders:
        - map: ~/www/your-project
          to: /home/vagrant/your-project
          type: "nfs"
    sites:
        - map: app.local
          to: /home/vagrant/your-project/web
    databases:
        - database_name
    # variables:
    #     - key: APP_ENV
    #       value: local
    # blackfire:
    #     - id: foo
    #       token: bar
    #       client-id: foo
    #       client-token: bar
    # ports:
    #     - send: 93000
    #       to: 9300
    #     - send: 7777
    #       to: 777
    #       protocol: udp

Commands

Start the Homestead VM

$ php app/console homestead:up

SSH into the Homestead VM

$ php app/console homestead:ssh

Run the command inside the Homestead VM

$ php app/console homestead:run some_command

Pause/suspend Homestead VM

$ php app/console homestead:suspend

Resume Homestead VM

$ php app/console homestead:resume

Provision Homestead VM

$ php app/console homestead:provision
``````

#### Halt Homestead VM
```bash
$ php app/console homestead:halt

Destroy Homestead VM

$ php app/console homestead:destroy

Display OpenSSH valid configuration

$ php app/console homestead:ssh-config

Display the status of the Homestead VM

$ php app/console homestead:status

Update Homestead VM

$ php app/console homestead:update

The Versions

03/09 2015

dev-master

9999999-dev

Integrate Laravel Homestead VM seamlessly with your Symfony Apps

  Sources   Download

MIT

The Requires

 

The Development Requires

by Patrik Fuhrmann

virtual machine

03/09 2015

1.0.1

1.0.1.0

Integrate Laravel Homestead VM seamlessly with your Symfony Apps

  Sources   Download

MIT

The Requires

 

The Development Requires

by Patrik Fuhrmann

virtual machine

25/08 2015

1.0.0

1.0.0.0

Integrate Laravel Homestead VM seamlessly with your Symfony Apps

  Sources   Download

MIT

The Requires

 

The Development Requires

by Patrik Fuhrmann

virtual machine