PHPackages                             patrikjak/utils - 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. patrikjak/utils

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

patrikjak/utils
===============

A simple utility package for Laravel

v2.14.0(1mo ago)08662MITPHPPHP ^8.4CI passing

Since Oct 24Pushed 2mo ago1 watchersCompare

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

READMEChangelog (10)Dependencies (15)Versions (45)Used By (2)

Utils Package
=============

[](#utils-package)

[![codecov](https://camo.githubusercontent.com/3daf66c9e86bd6de29618cccaa4fc5ae06a9faf7c6db30ede40fafa8751d258b/68747470733a2f2f636f6465636f762e696f2f67682f70617472696b6a616b2f7574696c732f67726170682f62616467652e7376673f746f6b656e3d4e4f4c3059314e423253)](https://codecov.io/gh/patrikjak/utils)

The **Utils** package is a versatile utility toolkit designed to enhance Laravel applications. It provides a variety of reusable classes and functions to streamline development, including CSS and JavaScript assets to support frontend components like buttons, modals, and tables. Easily integrate the package into your project, publish assets, and selectively include only the styles and functions you need for a highly customizable setup. Perfect for Laravel developers seeking to simplify their workflow with ready-to-use utilities.

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

[](#table-of-contents)

- [Installation](#installation)
- [Setup](#setup)
- [Usage](#usage)
    - [CSS](#css)
    - [JavaScript](#javascript)
        - [Dependencies](#dependencies)

---

What's included:

- **CSS** - A collection of reusable styles for buttons, modals, tables, and more.
- **JavaScript** - A variety of functions to enhance user experience and streamline development.
- **Forms** - A set of form components to simplify form creation.
- **Tables** - A collection of table components to enhance data presentation.
- **Modals** - A set of modal components to display content in a modal window.
- **Notifications** - A collection of notification components to display messages to users.

### You can find the full documentation [here](https://utils.patrikjakab.sk).

[](#you-can-find-the-full-documentation-here)

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

[](#installation)

Install the package via Composer:

```
composer require patrikjak/utils
```

Setup
-----

[](#setup)

After installing the package, add the package provider to the providers array in bootstrap/providers.php.

```
use Patrikjak\Utils\UtilsServiceProvider;

return [
    ...
    UtilsServiceProvider::class,
];
```

Next, publish the package assets:

```
php artisan vendor:publish --tag="assets" --force
```

Usage
-----

[](#usage)

The Utils package offers a variety of useful classes and functions.

### CSS

[](#css)

To include all component styles, add the main.css file:

```

```

You need to set border-box box-sizing for all elements in your CSS file to prevent layout issues:

```
* {
    box-sizing: border-box;
}
```

### JavaScript

[](#javascript)

This package does not include a compiled JavaScript file. Instead, import and call functions directly within your main JavaScript file.

Refer to the documentation for a list of available functions and usage examples.

#### Dependencies

[](#dependencies)

Utils requires the following dependencies to function properly:

- [i18n-js](https://www.npmjs.com/package/i18n-js)
- [axios](https://www.npmjs.com/package/axios)

```
npm install i18n-js axios
```

To load correct language for JS you need to set lang attribute to html tag

```

```

Currently supported languages are:

- en
- sk

You will need to set up Vite build target to **esnext** in your `vite.config.js` file:

```
export default defineConfig({
    ...
    build: {
        target: 'esnext',
    },
});
```

###  Health Score

50

—

FairBetter than 96% of packages

Maintenance86

Actively maintained with recent releases

Popularity19

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity69

Established project with proven stability

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

Recently: every ~6 days

Total

42

Last Release

50d ago

Major Versions

0.3.1 → 1.0.02024-12-01

1.5.0 → 2.0.02025-02-25

PHP version history (2 changes)0.2.0PHP ^8.3

2.2.0PHP ^8.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/49360467?v=4)[Patrik Jakab](/maintainers/patrikjak)[@patrikjak](https://github.com/patrikjak)

---

Top Contributors

[![patrikjak](https://avatars.githubusercontent.com/u/49360467?v=4)](https://github.com/patrikjak "patrikjak (38 commits)")

---

Tags

laravelutilityutilstables

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/patrikjak-utils/health.svg)

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

###  Alternatives

[rappasoft/laravel-livewire-tables

A dynamic table component for Laravel Livewire

2.0k2.7M31](/packages/rappasoft-laravel-livewire-tables)[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4205.3M84](/packages/livewire-volt)[forxer/laravel-gravatar

A library providing easy gravatar integration in a Laravel project.

4235.6k](/packages/forxer-laravel-gravatar)

PHPackages © 2026

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