naifmhd / gazette
A package to fetch Jobs and Tenders from Gazette.gov.mv
Installs: 2 891
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 6
Requires
- guzzlehttp/guzzle: ^7.2
- illuminate/support: ~7|~8|~9|~10|~11|~12
Requires (Dev)
- orchestra/testbench: ~5|~6|~7|~8|~9|~10
- phpunit/phpunit: ^9.5
- dev-master
- v0.7.0
- v0.6.0
- v0.5.1
- v0.5.0
- v0.3.0
- v0.2.5
- v0.2.0
- v0.1.0
- dev-dependabot/composer/phpunit/phpunit-9.6.5
- dev-dependabot/composer/symfony/http-kernel-5.4.20
- dev-dependabot/composer/orchestra/testbench-6.25.1
- dev-dependabot/composer/guzzlehttp/guzzle-7.5.0
- dev-dependabot/composer/guzzlehttp/psr7-1.8.5
- dev-dependabot/composer/laravel/framework-8.83.2
- dev-dependabot/composer/league/flysystem-1.1.4
- dev-analysis-OMY2Ea
This package is auto-updated.
Last update: 2025-04-25 00:51:00 UTC
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.