PHPackages                             teefa/prepare - 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. teefa/prepare

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

teefa/prepare
=============

Preparing the most important things used for any project

v1.0.0(1y ago)03MITPHPPHP &gt;=8.2

Since Sep 15Pushed 1y ago1 watchersCompare

[ Source](https://github.com/mostafayehia2002/prepare-project)[ Packagist](https://packagist.org/packages/teefa/prepare)[ RSS](/packages/teefa-prepare/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Teefa Prepare
=============

[](#teefa-prepare)

Preparing the most important things used for any project.

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

[](#installation)

You can install the package via Composer:

```
composer require teefa/prepare
```

### Publishing Assets

[](#publishing-assets)

To publish the assets of this package, use the following command

```
php artisan vendor:publish --provider="Teefa\Prepare\PrepareServiceProvider" --tag=prepare
```

### Available Publishable Resources

[](#available-publishable-resources)

1-HttpResponse Trait:

This trait contains helper methods for returning consistent HTTP responses in your API. Published to: `app/Traits/HttpResponse.php.`

2-CustomizeDate Trait:

This trait provides methods to customize the display of created\_at and updated\_at fields in a human-readable format. Published to:` app/Traits/CustomizeDate.php.`

2-ApiLanguage Middleware:

Middleware that sets the application's locale based on the lang header in the API request. If no lang header is provided, it defaults to English.

Published to: `app/Http/Middleware/ApiLanguage.php.`

4-AutoCheckPermission Middleware:

Middleware that automatically checks user permissions for specific API routes and ensures that the user has the appropriate access level. Published to: `app/Http/Middleware/AutoCheckPermission.php`

5-UpdateUserLastActiveAt Middleware:

Middleware that updates the last\_active\_at field for users, which tracks when the user was last active. Published to: `app/Http/Middleware/UpdateUserLastActiveAt.php.`

### Custom Namespace Updating

[](#custom-namespace-updating)

After publishing the traits or middleware, the package will automatically update the namespace in the published files to match the folder structure within your Laravel application.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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

Unknown

Total

1

Last Release

611d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a9248e85a7afd5b93d6b37e7929a98648debe8d60d3df97b345ae3c298aac559?d=identicon)[mostafayehia2002](/maintainers/mostafayehia2002)

---

Top Contributors

[![mostafayehia2002](https://avatars.githubusercontent.com/u/96825436?v=4)](https://github.com/mostafayehia2002 "mostafayehia2002 (1 commits)")

### Embed Badge

![Health badge](/badges/teefa-prepare/health.svg)

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

###  Alternatives

[agencetwogether/hookshelper

Simple plugin to toggle display hooks available in current page.

2312.7k](/packages/agencetwogether-hookshelper)[qbhy/hyperf-multi-env

287.4k2](/packages/qbhy-hyperf-multi-env)[speixoto/yii2-amcharts

AmCharts Widget for Yii 2

1414.2k](/packages/speixoto-yii2-amcharts)

PHPackages © 2026

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