PHPackages                             netsilik/struct - 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. netsilik/struct

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

netsilik/struct
===============

Getters and setters made easy by rule bound magic methods. Support for Read-only public properties.

2.0.3(6y ago)1288MITPHPPHP ^7.0

Since Jul 17Pushed 6y ago3 watchersCompare

[ Source](https://github.com/Netsilik/Struct)[ Packagist](https://packagist.org/packages/netsilik/struct)[ Docs](https://gitlab.com/Netsilik/Struct)[ RSS](/packages/netsilik-struct/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (10)Used By (0)

Struct
======

[](#struct)

Getters and setters made easy by rule bound magic methods. Support for Read-only public properties.

---

MIT Licence

Unless required by applicable law or agreed to in writing, software distributed under the Licence is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

Contact:
Latest version available at:

---

Usage
-----

[](#usage)

```
namespace Nestilik\Example;

use Netsilik\Lib\Struct;

/**
 * Foo class
 */
class Foo extends Struct
{
	/**
	 * @var array $_settableProperties The list of properties that are settable
	 */
	protected $_settableProperties = ['name', 'description'];

	/**
	 * @var integer $objectId
	 */
	protected $objectId;

	/**
	 * @var string $name
	 */
	protected $name;

	/**
	 * @var string $description
	 */
	protected $description;
}

$myFoo = new Foo();

$myFoo->name = 'Test';

echo $myFoo->name; // Test
```

---

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

[](#installation)

```
composer require netsilik/struct

```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity64

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

Recently: every ~73 days

Total

9

Last Release

2510d ago

Major Versions

1.1.1 → 2.0.02018-10-27

PHP version history (3 changes)1.0.0PHP ^5.4 || ^7.0

1.1.1PHP ^5.5.0 || ^7.0

2.0.0PHP ^7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/90d507c4b8102af88517672375ad0777056f35baecaf2ea94dbc7b7c2e7c5512?d=identicon)[Jacco-V](/maintainers/Jacco-V)

---

Top Contributors

[![Jacco-V](https://avatars.githubusercontent.com/u/19333579?v=4)](https://github.com/Jacco-V "Jacco-V (18 commits)")

---

Tags

entitiespopostruct

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/netsilik-struct/health.svg)

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

###  Alternatives

[lukascivil/treewalker

TreeWalker is a simple and small Library that will help you to work faster with manipulation of structures in PHP

731.1M7](/packages/lukascivil-treewalker)[danog/phpstruct

PHP implementation of python's struct module.

1110.5k](/packages/danog-phpstruct)[antares/accessible

PHP library that allows you to define your class' getters, setters and constructor with docblock annotations.

123.9k1](/packages/antares-accessible)

PHPackages © 2026

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