PHPackages                             kalebalebachew/hasab-laravel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. kalebalebachew/hasab-laravel

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

kalebalebachew/hasab-laravel
============================

A Laravel SDK for Hasab AI

v1.0.0(7mo ago)2111MITPHPPHP ^8.0|^8.1|^8.2|^8.3|^8.4CI passing

Since Nov 12Pushed 7mo agoCompare

[ Source](https://github.com/kalebalebachew/hasab-laravel)[ Packagist](https://packagist.org/packages/kalebalebachew/hasab-laravel)[ RSS](/packages/kalebalebachew-hasab-laravel/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (3)Versions (5)Used By (0)

[![Hasab AI Banner](https://camo.githubusercontent.com/63459743e894cb6791c7ec311649598d436d7c1f3e862e2352f7014fce84de4e/68747470733a2f2f646576656c6f7065722e68617361622e61692f5f6e6578742f696d6167653f75726c3d2532465f6e6578742532467374617469632532466d6564696125324662616e6e65722d322e64303132306637622e706e6726773d3139323026713d3735)](https://camo.githubusercontent.com/63459743e894cb6791c7ec311649598d436d7c1f3e862e2352f7014fce84de4e/68747470733a2f2f646576656c6f7065722e68617361622e61692f5f6e6578742f696d6167653f75726c3d2532465f6e6578742532467374617469632532466d6564696125324662616e6e65722d322e64303132306637622e706e6726773d3139323026713d3735)

Hasab AI Laravel SDK
====================

[](#hasab-ai-laravel-sdk)

A simple Laravel SDK for integrating with [Hasab AI](https://developer.hasab.ai).
It gives you a clean way to access Hasab's core features — transcription, translation, text-to-speech (TTS), and chat — without writing repetitive HTTP logic.

This package is intentionally small and follows normal Laravel patterns.
You get config publishing, a service provider, a facade, and a few service classes. No extra layers just straightforward code that works.

---

Why this exists
---------------

[](#why-this-exists)

Hasab provides powerful AI endpoints, but using them directly from Laravel requires setting up headers, base URLs, and file uploads each time.
This SDK wraps those calls with a consistent interface so you can work like this:

```
Hasab::tts()->synthesize('Hello world', 'eng');
```

instead of manually handling authentication or request payloads.

Requirements
------------

[](#requirements)

- PHP 8.0 or higher
- A valid Hasab API key from [Hasab AI](https://developer.hasab.ai)

Installation
------------

[](#installation)

Install with Composer:

```
composer require kalebalebachew/hasab-laravel
```

Configuration
-------------

[](#configuration)

You can publish the config file (optional):

```
php artisan vendor:publish --tag=hasab-config
```

Then add these to your `.env`:

```
HASAB_API_KEY=your_api_key_here
HASAB_BASE_URL=https://hasab.co/api
HASAB_API_VERSION=v1
```

Quick Start
-----------

[](#quick-start)

```
use Hasab\Facades\Hasab;

// Chat
$response = Hasab::chat()->complete([
    'message' => 'Hello, how are you?',
    'model' => 'hasab-1-lite',
]);

// Text-to-Speech
$audio = Hasab::tts()->synthesize([
    'text' => 'Hello, world!',
    'language' => 'eng',
]);

// Transcription (⚠️ Ongoing Implementation)
$transcription = Hasab::transcription()->upload([
    'file' => storage_path('app/audio/recording.mp3'),
]);

// Translation (⚠️ Ongoing Implementation)
$translation = Hasab::translation()->translate([
    'text' => 'Hello, how are you?',
    'source_language' => 'eng',
    'target_language' => 'amh',
]);
```

Documentation
-------------

[](#documentation)

For detailed examples and advanced usage, check out the [Usage Guide](USAGE.md).

Contributing
------------

[](#contributing)

Want to contribute? Check out the [Contributing Guide](CONTRIBUTING.md) for guidelines on how to get started.

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance63

Regular maintenance activity

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 81.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

232d ago

Major Versions

v0.1.0-beta → v1.0.02025-11-13

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/118438724?v=4)[Kaleb](/maintainers/kalebalebachew)[@kalebalebachew](https://github.com/kalebalebachew)

---

Top Contributors

[![kalebalebachew](https://avatars.githubusercontent.com/u/118438724?v=4)](https://github.com/kalebalebachew "kalebalebachew (26 commits)")[![Hanan467](https://avatars.githubusercontent.com/u/123656973?v=4)](https://github.com/Hanan467 "Hanan467 (6 commits)")

### Embed Badge

![Health badge](/badges/kalebalebachew-hasab-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/kalebalebachew-hasab-laravel/health.svg)](https://phpackages.com/packages/kalebalebachew-hasab-laravel)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5021.9k](/packages/simplestats-io-laravel-client)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1235.9k20](/packages/fleetbase-core-api)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[api-platform/laravel

API Platform support for Laravel

58171.5k14](/packages/api-platform-laravel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
