naifmhd/gazette

A package to fetch Jobs and Tenders from Gazette.gov.mv


README

Latest Version on Packagist Total Downloads GitHub Tests Action Status StyleCI

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.