PHPackages                             azzarip/utilities - 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. azzarip/utilities

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

azzarip/utilities
=================

Utilities for websites using Laravel

2.2.0(2y ago)0556MITPHP

Since Feb 25Pushed 8mo ago1 watchersCompare

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

READMEChangelog (10)DependenciesVersions (16)Used By (0)

Contains utilities classes used on all Pizza Azzari websites.

CHF
===

[](#chf)

Contains the `CHF` object. It reads rappe integers as

```
CHF::int(142) // 1.42 CHF
CHF::chf(1.42) // 1.42 CHF

```

The CHF objects outputs the string value as

```
$chf = CHF::int(100)
{{ $chf }} // 1.00
$chf->format() // 1.-
$chf->label() // CHF 1.-

```

Cookie
======

[](#cookie)

Add before the end of the html document

```
@livewire('cookie-consent')

```

It will spawn a modal with three options:

- Accept all
- Only Essentials
- Modify Depending on the choice of the user, it will deploy a cookie that will confirm the acceptance of the cookie policy.

The cookie is calle `cookie_consent` is not encrypted, and contains a timestamp, the three consent (optional, marketing, analytics) and a version of the cookie banner. The cookie is refreshed every time, expires after one year or with a change of version.

Admin Panel
===========

[](#admin-panel)

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

[](#installation)

Run the following artisan command:

```
php artisan admin-panel:install

```

It will create a view/admin-panel directory with `home.blade.php` inside. This file access the admin home page at `home.DOMAIN_BASE`.

Other console commands
----------------------

[](#other-console-commands)

Install a new panel, which is automatically discovered.

```
php artisan admin-panel:make panel_name

```

Creates a new panel with name `panel_name`. It is automatically discovered, when the 1 day cache expires.

To refresh the cache use

```
php artisan admin-panel:refresh

```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance42

Moderate activity, may be stable

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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 ~3 days

Total

15

Last Release

811d ago

Major Versions

1.3 → 2.0.02024-04-01

### Community

Maintainers

![](https://www.gravatar.com/avatar/552b5aa7ab775f5b73ebfd340bfbf922af893a120a4a97dc5abdf0ac7b116840?d=identicon)[azzarip](/maintainers/azzarip)

---

Top Contributors

[![azzarip](https://avatars.githubusercontent.com/u/116155557?v=4)](https://github.com/azzarip "azzarip (242 commits)")

### Embed Badge

![Health badge](/badges/azzarip-utilities/health.svg)

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

PHPackages © 2026

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