PHPackages                             multisafepay/laravel-cast-json-models - 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. multisafepay/laravel-cast-json-models

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

multisafepay/laravel-cast-json-models
=====================================

A simple and direct way of casting json objects to models

1.0.0(3y ago)08113GPL-3.0-or-laterPHP

Since Feb 20Pushed 3y ago1 watchersCompare

[ Source](https://github.com/MultiSafepay/laravel-cast-json-models)[ Packagist](https://packagist.org/packages/multisafepay/laravel-cast-json-models)[ RSS](/packages/multisafepay-laravel-cast-json-models/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (3)

Laravel json casting
====================

[](#laravel-json-casting)

- A easy solution to have decriptions of json objects POCO style, please check **tests** for examples
- The method **Object::collection** will convert an array of objects to an collection of PHP objects that extends from CastModels\\Model
- The objects that extends from CastModels\\Model has the method **toArray** so can be returned in a response directly

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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

1177d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2191df32ae1d7f2d5559e91e73bf29e8b003b368917a0985afcb3c4e23de8587?d=identicon)[MSP](/maintainers/MSP)

---

Top Contributors

[![jrivasmsp](https://avatars.githubusercontent.com/u/101558683?v=4)](https://github.com/jrivasmsp "jrivasmsp (2 commits)")[![jarivas](https://avatars.githubusercontent.com/u/3421025?v=4)](https://github.com/jarivas "jarivas (1 commits)")

### Embed Badge

![Health badge](/badges/multisafepay-laravel-cast-json-models/health.svg)

```
[![Health](https://phpackages.com/badges/multisafepay-laravel-cast-json-models/health.svg)](https://phpackages.com/packages/multisafepay-laravel-cast-json-models)
```

PHPackages © 2026

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