tournasdim
6/24/2013 - 9:23 PM

Laravel4 and ZF2 Composer file example

Laravel4 and ZF2 Composer file example

{
	"name": "laravel/laravel",
	"description": "The Laravel Framework.",
	"keywords": ["framework", "laravel"],
	"require": {
	"laravel/framework": "4.0.*" , 
	"stevemo/cpanel": "dev-develop" ,
	"zendframework/zend-config": "2.*",
    "zendframework/zend-http": "2.*"
	},
	"repositories": [
    {
        "type": "composer",
        "url": "https://packages.zendframework.com/"
    }
],
	"autoload": {
		"classmap": [
			"app/commands",
			"app/controllers",
			"app/models",
			"app/database/migrations",
			"app/database/seeds",
			"app/tests/TestCase.php"
		]
	},
	"scripts": {
		"post-install-cmd": [
			"php artisan optimize"
		],
		"pre-update-cmd": [
			"php artisan clear-compiled"
		],
		"post-update-cmd": [
			"php artisan optimize"
		],
		"post-create-project-cmd": [
			"php artisan key:generate"
		]
	},
	"config": {
		"preferred-install": "dist"
	},
	"minimum-stability": "dev"
}