mesingh / envato
一个用于Envato市场的Laravel 4包 - 例如themeforest.net。
dev-master
2015-03-15 20:22 UTC
Requires
- php: >=5.3.0
- illuminate/support: 5.0.x
This package is not auto-updated.
Last update: 2024-09-28 15:34:09 UTC
README
一个用于Envato市场的Laravel 4包 - 例如themeforest.net。
信息
访问 www.gewora.net 获取更多精彩产品!
安装
要获取Gewora/Envato的最新版本,请在您的 composer.json
文件中添加依赖。
"gewora/envato": "dev-master"
之后,您需要运行 composer update
来下载最新版本并更新自动加载器。
Gewora/Envato安装完成后,您需要注册ServiceProvider。要实现这一点,请打开 app/config/app.php
文件,并将以下内容添加到 providers
键下。
'Gewora\Envato\EnvatoServiceProvider',
使用方法
首先,您需要发布配置文件。在终端中输入以下命令:
php artisan config:publish Gewora\Envato
现在打开: app/config/packages/Gewora/config.php
并填写您的数据
return array(
'username' => 'Your Envato Username',
'api_key' => 'Your Envato API Key',
);
现在您可以使用此包了
$result = Envato::account_information();
dd($result);