PHPackages                             botnyx/simple-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. botnyx/simple-object

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

botnyx/simple-object
====================

simple-object .

0.1.1(7y ago)029proprietaryPHPPHP &gt;=7.1CI failing

Since Apr 7Pushed 7y agoCompare

[ Source](https://github.com/botnyx/simpleObject)[ Packagist](https://packagist.org/packages/botnyx/simple-object)[ RSS](/packages/botnyx-simple-object/feed)WikiDiscussions master Synced 3d ago

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

simpleObject
============

[](#simpleobject)

SimpleObject allows you to create simple objects with minimal (yet sufficient) variable checking.

A simpleObject can be created by passing an array, object or json to the constructor.

Handy for creating custom data objects which require specific values - or have default values.

the following types are available to validate the input of the property.

```
string
int
bool
float
array
object

url
domain
tld
email
countrycode
languagecode
date
lowercase
uppercase
phone
alpha
nowhitespace
ip

```

Usage:

Create your own custom object.

```
class myObject extends Botnyx\SimpleObject {
	function objectProperties(){
		return array(
			"someVar1"=>	array( "type"=>"string", "required"=>true, "defval"=>"defaultVal"  ),
			"someVar2"=>	array( "type"=>"string", "required"=>false, "defval"=>""  )
		);
	}

}
```

Fill the custom object

```
$MyObject = new myObject( [array/object/json]);
```

Output/access the object

```
print_r($MyObject);
```

Output as Array

```
print_r($MyObject->asArray());
```

Output as Json

```
print_r($MyObject->asJson());
```

Once a property is set, it cannot be altered.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity44

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

2595d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0ec18b10687be619a7d64aee76c8aadffc312fe930d9fe901ac60a41b735875d?d=identicon)[botnyx](/maintainers/botnyx)

---

Top Contributors

[![botnyx](https://avatars.githubusercontent.com/u/27279013?v=4)](https://github.com/botnyx "botnyx (36 commits)")

---

Tags

composerlibrarysfe

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/botnyx-simple-object/health.svg)

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

###  Alternatives

[cybercog/laravel-paket

Composer personal web interface. Manage Laravel dependencies without switching to command line!

1753.3k](/packages/cybercog-laravel-paket)[compwright/codeigniter-installers

Composer installers for CodeIgniter

2982.0k4](/packages/compwright-codeigniter-installers)[wilianx7/php-recurring

PHP library to make getting dates easier when working with recurring tasks.

1045.0k](/packages/wilianx7-php-recurring)[ph-7/qrcode-generator-php-class

Light QRCode PHP class (library). QR Code Generator using vCard 4.0 and the Google Chart AP

10415.5k2](/packages/ph-7-qrcode-generator-php-class)[sllh/composer-lint

Extends the composer validate command with extra rules

14214.6k7](/packages/sllh-composer-lint)

PHPackages © 2026

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