2017 © Pedro Peláez
 

library yii-web-setup

Yii web setup base for your project including vagrant box and xhprof debug panel

image

firegate666/yii-web-setup

Yii web setup base for your project including vagrant box and xhprof debug panel

  • Sunday, October 18, 2015
  • by firegate666
  • Repository
  • 1 Watchers
  • 1 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Yii Web Setup

Introduction

This is my template on a clean web setup for a Yii project. This includes having the document root and its public files separated from the protected files and setting up Yii with composer for your project., (*1)

Configuration

You also have the possibility to setup defaults configs for your project in, (*2)

protected/config/main.php
protected/config/console.php
protected/config/test.php

And let your clients override some of the parameters in, (*3)

protected/config/main.local.php
protected/config/console.local.php
protected/config/test.local.php

Feel free to post your opinion on this approach and let us create a re-usable template/setup for us Yii developers., (*4)

Maybe there are also some more dependencies or modules you suggest having by default? Let me know., (*5)

How to use this?

  • Create your project from this template composer create-project firegate666/yii-web-setup
  • Adjust package meta information in composer.json
  • That's it, now you are ready to develop your project.
  • use git as versioning tool

If your project has different need on dependencies, delete composer.lock, adjust composer.json to your needs and run composer again to install your dependencies., (*6)

Development setup

This project is shipped with a vagrant box example setup that you can use to start developing., (*7)

  • On your development machine install Virtualbox and Vagrant.
  • enter vagrant folder
  • type vagrant up

It will setup everything you need to start developing. After vagrant is done, open, (*8)

http://192.168.56.5/

and you will see the default yii installation. This box has xhprof pre-installed and bundled with Yii. If you want to take a look at this cool profiler, open, (*9)

protected/config/main.local.php

and comment in the configuration. Now you will have a debug panel on each page with a link to the profiler result., (*10)

The Versions

18/10 2015

dev-master

9999999-dev https://github.com/firegate666/SimpleDaemon

Yii web setup base for your project including vagrant box and xhprof debug panel

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Marco Behnke

18/10 2015

1.0.3

1.0.3.0 https://github.com/firegate666/SimpleDaemon

Yii web setup base for your project including vagrant box and xhprof debug panel

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Marco Behnke

18/10 2015

1.0.2

1.0.2.0 https://github.com/firegate666/SimpleDaemon

Yii web setup base for your project including vagrant box and xhprof debug panel

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Marco Behnke

18/10 2015

1.0.1

1.0.1.0 https://github.com/firegate666/SimpleDaemon

Simple PHP daemon wrapper for your custom handler, integrates easily with initd or supervisor

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Marco Behnke

18/10 2015

1.0.0

1.0.0.0 https://github.com/firegate666/SimpleDaemon

Simple PHP daemon wrapper for your custom handler, integrates easily with initd or supervisor

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Marco Behnke