<?php namespace Laravel\CLI\Tasks\Bundle\Providers; use Laravel\Request;

class Github extends Provider {

	/**
	 * Install the given bundle into the application.
	 * 将给定的包安装到应用程序中。
	 * @param  string  $bundle
	 * @param  string  $path
	 * @return void
	 */
	public function install($bundle, $path)
	{
		$url = "http://nodeload.github.com/{$bundle['location']}/zipball/master";

		parent::zipball($url, $bundle, $path);
	}

}

github地址: https://github.com/liu-shilong/laravel3-scr  

更多推荐