PHPackages                             angle/structure - 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. angle/structure

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

angle/structure
===============

Bring structs to PHP

v1.0.0(7y ago)10MITPHPPHP ^7.1

Since Feb 4Pushed 7y agoCompare

[ Source](https://github.com/anglesoft/structure)[ Packagist](https://packagist.org/packages/angle/structure)[ RSS](/packages/angle-structure/feed)WikiDiscussions master Synced 4d ago

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

Structure
=========

[](#structure)

Motivation
----------

[](#motivation)

While we wait for typed properties to be implemented within PHP classes, let's have fun finding ways to implement this language feature on our own!

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

[](#installation)

Install the Angle\\Structure package via Composer:

```
composer require angle/structure

```

Your First Struct
-----------------

[](#your-first-struct)

Structs are php classes that make the use of the `Structure` trait. The trait will take over the class constructor, so make shure you use it only for strong typing properties (which structs are for basically).

```
