PHP code example of naifmhd / gazette

1. Go to this page and download the library: Download naifmhd/gazette library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

naifmhd / gazette example snippets


// config/services.php
...
'gazette' => [
        'grant_type' => env('GAZETTE_GRANT_TYPE', 'client_credentials'),
        'client_id' => env('GAZETTE_CLIENT_ID'),
        'client_secret' => env('GAZETTE_CLIENT_SECRET'),
    ],
...

use Gazette;

$response = Gazette::iulaans();

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();

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;

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;