naifmhd/gazette
最新稳定版本:v0.7.0
Composer 安装命令:
composer require naifmhd/gazette
包简介
A package to fetch Jobs and Tenders from Gazette.gov.mv
README 文档
README
This is where your description should go. Take a look at contributing.md to see a to do list.
Installation
Via Composer
$ composer require naifmhd/gazette
Setting up the Gazette API credentials
Add your Gazette API Key and CLIENT ID and CLIENT SECRET to your config/services.php. You can refer to how to get the API Keys from the (Official Gazette API Documentation)[https://api.gazette.gov.mv/].
// config/services.php ... 'gazette' => [ 'grant_type' => env('GAZETTE_GRANT_TYPE', 'client_credentials'), 'client_id' => env('GAZETTE_CLIENT_ID'), 'client_secret' => env('GAZETTE_CLIENT_SECRET'), ], ...
Usage
use Gazette; $response = Gazette::iulaans();
Available Methods
Gazette::iulaans(int $page = null); Gazette::iulaan(int $id); Gazette::iulaanByType(IulaanType::VAZEEFA, int $page = null); Gazette::vazeefaByType(VazeefaType::CONSTRUCTION, int $page = null); Gazette::unpublished();
Iulaan Types
IulaanType::MASAKKAIY; IulaanType::GANNAN_BEYNUNVAA; IulaanType::KUYYAH_DHINUN; IulaanType::KUYYAH_HIFUN; IulaanType::VAZEEFA; IulaanType::THAMREENU; IulaanType::NEELAN; IulaanType::AANMU_MAULOOMAATHU; IulaanType::DHENNEVUN; IulaanType::MUBAARAAI; IulaanType::NOOS_BAYAAN; IulaanType::INSURANCE;
Vazeefa Types
VazeefaType::ADMINISTRATION; VazeefaType::PUBLIC_RELATIONS; VazeefaType::CONSTRUCTION; VazeefaType::EDUCATION; VazeefaType::FINANCE; VazeefaType::HEALTH; VazeefaType::HUMAN_RESOURCE; VazeefaType::INFORMATION_TECHNOLOGY; VazeefaType::INSURANCE; VazeefaType::PUBLISHING_JOURNALISM; VazeefaType::TRANSPORT; VazeefaType::LEGAL; VazeefaType::TECHNICAL; VazeefaType::CUSTOMER_SERVICE; VazeefaType::MAINTENANCE; VazeefaType::SUPPORT_STAFF; VazeefaType::MECHANICAL; VazeefaType::MANAGEMENT;
Change log
Please see the changelog for more information on what has changed recently.
Testing
$ composer test
Contributing
Please see contributing.md for details and a todolist.
Security
If you discover any security related issues, please email naifmhd@gmail.com instead of using the issue tracker.
Credits
License
MIT. Please see the license file for more information.
统计信息
- 总下载量: 2.95k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-01-01