menarasolutions/geographer-laravel
最新稳定版本:0.2.1
Composer 安装命令:
composer require menarasolutions/geographer-laravel
包简介
Geographer integration classes for Laravel and Lumen
README 文档
README
Laravel (and Lumen) integration for Geographer
Getting started
Install Laravel integration package first:
$ composer require menarasolutions/geographer-laravel
Good news is that Laravel will take care of singleton instance for you, so no matter how many times you call it – it's the same object.
In Laravel 5.5, service providers and aliases are automatically registered. If you're using Laravel 5.5, skip ahead.
// Add in your config/app.php 'providers' => [ '...', MenaraSolutions\Geographer\Integrations\LaravelServiceProvider::class, ]; 'aliases' => [ '...', 'Geographer' => MenaraSolutions\Geographer\Integrations\LaravelFacade::class, ]; // Start playing with it, all the same calls Geographer::getCountries()->useShortNames()->toArray();
Full list of methods is available in Geographer documentation
统计信息
- 总下载量: 104.98k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 19
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-10-02