Search by

codezenshagor / gov-job

Official Laravel & PHP Client SDK for Government Jobs Bangladesh Open REST API

Maintainers

Package info

github.com/codezenshagor/gov-job-laravel

pkg:composer/codezenshagor/gov-job

Transparency log

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.0 2026-09-06 12:14 UTC

This package is auto-updated.

Last update: 2026-09-06 12:24:08 UTC


README

Official Laravel wrapper & PHP client for the Government Jobs Bangladesh Open REST API.

📦 Installation

Install via Composer:

composer require codezenshagor/gov-job

(Optional) Publish the configuration file:

php artisan vendor:publish --tag="govjob-config"

⚙️ Configuration

Add your GovJobs API key to your .env file:

GOVJOB_API_KEY=gj_live_YOUR_API_KEY
GOVJOB_BASE_URL=https://gov-job-brown.vercel.app

🚀 Usage

Using the Laravel Facade

use CodeZenShagor\GovJob\Facades\GovJob;

// 1. Get current active open jobs for an organization (Date is bypassed automatically)
$jobs = GovJob::getJobsByOrganization('Department of Textiles (DOTR)');

// 2. Fetch jobs published on a specific calendar date (Archive)
$dateJobs = GovJob::getJobsByDate('2026-09-01');

// 3. Search and browse government organizations
$orgs = GovJob::getOrganizations(['search' => 'Biman']);

// 4. Get masked direct PDF streaming URL
$pdfUrl = GovJob::getPdfUrl(100);

Pure PHP (Without Laravel Framework)

require 'vendor/autoload.php';

use CodeZenShagor\GovJob\GovJobClient;

$client = new GovJobClient('gj_live_YOUR_API_KEY');
$jobs = $client->getJobsByOrganization('Biman Bangladesh Airlines');

🔑 License

MIT License © codezenshagor