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(6mo ago)2111MITPHPPHP ^8.0|^8.1|^8.2|^8.3|^8.4CI passing

Since Nov 12Pushed 5mo 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 1mo ago

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

38

—

LowBetter than 85% of packages

Maintenance70

Regular maintenance activity

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity55

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

180d ago

Major Versions

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

### Community

Maintainers

![](https://www.gravatar.com/avatar/6674c3874b575130768d992c6d9bbbcf405c36e13f5538c288e60a3ce0f6823f?d=identicon)[kalebalebachew](/maintainers/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

[glhd/conveyor-belt

14797.0k](/packages/glhd-conveyor-belt)[aedart/athenaeum

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

255.2k](/packages/aedart-athenaeum)[ashallendesign/favicon-fetcher

A Laravel package for fetching website's favicons.

190272.4k3](/packages/ashallendesign-favicon-fetcher)[beyondcode/laravel-favicon

Create dynamic favicons based on your environment settings.

37345.5k](/packages/beyondcode-laravel-favicon)[laragear/preload

Effortlessly make a Preload script for your Laravel application.

119363.5k](/packages/laragear-preload)[ankurk91/laravel-ses-webhooks

Handle AWS SES webhooks in Laravel php framework

2534.2k](/packages/ankurk91-laravel-ses-webhooks)

PHPackages © 2026

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