codezenshagor / gov-job
Official Laravel & PHP Client SDK for Government Jobs Bangladesh Open REST API
v1.0.0
2026-09-06 12:14 UTC
Requires
- php: ^8.0|^8.1|^8.2|^8.3
- guzzlehttp/guzzle: ^7.0
- illuminate/support: ^9.0|^10.0|^11.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
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