PHPackages                             teksite/handler - 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. [Framework](/categories/framework)
4. /
5. teksite/handler

ActiveLibrary[Framework](/categories/framework)

teksite/handler
===============

Some features to handle Laravel codes better

1.1.1(5mo ago)1372MITPHPPHP ^8.2

Since Jan 17Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/teksite/handler)[ Packagist](https://packagist.org/packages/teksite/handler)[ RSS](/packages/teksite-handler/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (8)DependenciesVersions (10)Used By (2)

Handler Package
===============

[](#handler-package)

About
-----

[](#about)

A lightweight Laravel package designed to simplify common PHP and Laravel operations, including try-catch handling, database querying, and other utility functions.

Table of Contents
-----------------

[](#table-of-contents)

- [About](#about)
- [Author](#author)
- [Contact](#contact)
- [Installation](#installation)
- [Features](#features)
- [Usage](#usage)
- [Support](#support)
-

About
-----

[](#about-1)

The **Handler Package** streamlines development by providing helper functions for managing try-catch blocks, fetching data from databases, and other common tasks in PHP and Laravel applications. It aims to reduce boilerplate code and improve code readability.

Author
------

[](#author)

Developed by **Sina Zangiband**.

Contact
-------

[](#contact)

- Website: [teksite.net](https://teksite.net)
- Email:

---

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

[](#installation)

### Step 1: Install via Composer

[](#step-1-install-via-composer)

Run the following command in your terminal:

```
composer require teksite/handler
```

### Step 2: Register the Service Provider

[](#step-2-register-the-service-provider)

#### For Laravel 10 and 11

[](#for-laravel-10-and-11)

Add the service provider to the `bootstrap/providers.php` file:

```
'providers' => [
    // Other Service Providers
    Teksite\Handler\ServiceProvider::class,
],
```

> **Note**: Laravel 5.5 and above supports auto-discovery, so this step is not required for newer versions.

```
'providers' => [
    // Other Service Providers
    Teksite\Handler\ServiceProvider::class,
];
```

Features
--------

[](#features)

- Simplify exception handling.

```
\Teksite\Handler\Actions\ServiceWrapper
```

example

```
 return app(ServiceWrapper::class)(function () use ($inputs, $post) {
       $post->update(Arr::except($inputs, ['tag', 'meta', 'seo']));
       return $post;
 });
```

- Streamlined methods for querying and fetching data.

```
\Teksite\Handler\Services\FetchDataService
```

example

```
  public function get(mixed $fetchData = [])
  {
      return app(ServiceWrapper::class)(function () use ($fetchData) {
          return app(FetchDataService::class)(Post::class, ['title'], ...$fetchData);
      });
  }
```

### Configuration

[](#configuration)

The package includes a configuration file for customization. Publish it using:

```
php artisan vendor:publish --provider="Teksite\Handler\ServiceProvider"
```

Edit the configuration in `config/handler-settings.php` to adjust settings like default query limits or error logging.

Support
-------

[](#support)

For questions, issues, or feature requests, please reach out via:

- **Website**: [teksite.net](https://teksite.net)
- **Email**:
- **GitHub Issues**: [teksite/handler](https://github.com/tea%C3%A7%C3%B5es/extralaravel)

Contributions are welcome! Feel free to submit a pull request or open an issue on GitHub.

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance73

Regular maintenance activity

Popularity9

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~47 days

Recently: every ~41 days

Total

8

Last Release

154d ago

Major Versions

v0.0.2 → 1.0.02025-05-05

### Community

Maintainers

![](https://www.gravatar.com/avatar/67fc35394bd1e532d75cf3491aca86e6a5dd34da886f626939d1adcf4eb8aa07?d=identicon)[teksite](/maintainers/teksite)

---

Top Contributors

[![teksite](https://avatars.githubusercontent.com/u/149485086?v=4)](https://github.com/teksite "teksite (19 commits)")

### Embed Badge

![Health badge](/badges/teksite-handler/health.svg)

```
[![Health](https://phpackages.com/badges/teksite-handler/health.svg)](https://phpackages.com/packages/teksite-handler)
```

###  Alternatives

[laravel/passport

Laravel Passport provides OAuth2 server support to Laravel.

3.4k85.0M532](/packages/laravel-passport)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

712181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)[laravel/pail

Easily delve into your Laravel application's log files directly from the command line.

91545.3M590](/packages/laravel-pail)

PHPackages © 2026

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