PHPackages                             kfoobar/laravel-object - 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. kfoobar/laravel-object

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

kfoobar/laravel-object
======================

Laravel Object Helper

v0.2.0(2y ago)05MITPHPPHP ^7.3|^8.0

Since Oct 20Pushed 2y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

Laravel Object Helper
=====================

[](#laravel-object-helper)

A convenient utility for Laravel 5.5 and above, designed to effortlessly transform arrays and JSON strings into object form.

Getting Started
---------------

[](#getting-started)

### Installation

[](#installation)

Install the package through Composer:

```
composer require kfoobar/laravel-object
```

This command adds the Laravel Object Helper to your project, making it ready for use.

Usage
-----

[](#usage)

### Basic Conversion

[](#basic-conversion)

To convert an array or JSON string into an object, use:

```
$object = Obj::make(['foo' => 'bar']);
```

This basic usage converts the provided input into an object, streamlining data handling within your Laravel application.

### Error Handling

[](#error-handling)

By default, the method returns `null` if the input cannot be converted into an object. For stricter error handling, pass `true` as the second argument. This triggers an exceptio

```
$object = Obj::make($data, true);
```

This approach is beneficial in environments where fail-fast error handling is preferred, ensuring that conversion issues are immediately flagged and can be addressed.

Contributing
------------

[](#contributing)

Your contributions are highly appreciated! Whether it's through submitting bug reports, offering new features, or improving documentation, your help makes a difference.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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

Total

2

Last Release

836d ago

### Community

Maintainers

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

---

Top Contributors

[![KFoobar](https://avatars.githubusercontent.com/u/420690?v=4)](https://github.com/KFoobar "KFoobar (6 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kfoobar-laravel-object/health.svg)

```
[![Health](https://phpackages.com/badges/kfoobar-laravel-object/health.svg)](https://phpackages.com/packages/kfoobar-laravel-object)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M158](/packages/orchestra-canvas)[illuminate/pipeline

The Illuminate Pipeline package.

9446.6M213](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)

PHPackages © 2026

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