PHPackages                             hoa/core - 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. hoa/core

Abandoned → [hoa/consistency](/?search=hoa%2Fconsistency)ArchivedLibrary[Utility &amp; Helpers](/categories/utility)

hoa/core
========

The Hoa\\Core library.

2.15.11.09(10y ago)35958.0k—10%192BSD-3-ClausePHPPHP &gt;=5.4.0

Since Sep 16Pushed 9y ago10 watchersCompare

[ Source](https://github.com/hoaproject/Core)[ Packagist](https://packagist.org/packages/hoa/core)[ Docs](http://hoa-project.net/)[ RSS](/packages/hoa-core/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (19)Used By (2)

[![Hoa](https://camo.githubusercontent.com/b6460899aaa9a8910aa9331b036ef417b11c8f783d7c4de02a218d221fcae46e/687474703a2f2f7374617469632e686f612d70726f6a6563742e6e65742f496d6167652f486f615f736d616c6c2e706e67)](https://camo.githubusercontent.com/b6460899aaa9a8910aa9331b036ef417b11c8f783d7c4de02a218d221fcae46e/687474703a2f2f7374617469632e686f612d70726f6a6563742e6e65742f496d6167652f486f615f736d616c6c2e706e67)

Hoa is a **modular**, **extensible** and **structured** set of PHP libraries. Moreover, Hoa aims at being a bridge between industrial and research worlds.

Hoa\\Core [![state](https://camo.githubusercontent.com/a2ba6dd0125f544cd703da901f11f4be6d5153a4e2679379eccff00008b00075/687474703a2f2f63656e7472616c2e686f612d70726f6a6563742e6e65742f53746174652f436f7265)](https://camo.githubusercontent.com/a2ba6dd0125f544cd703da901f11f4be6d5153a4e2679379eccff00008b00075/687474703a2f2f63656e7472616c2e686f612d70726f6a6563742e6e65742f53746174652f436f7265)
====================================================================================================================================================================================================================================================================================================================================================================================================

[](#hoacore-)

This library is the foundation —the core— of all libraries of Hoa. It provides fundamental algorithms, paradigms and mechanisms, organized as follows:

- Core: core of the core;
- Consistency: adds consistency to PHP (`from`/`import`, `xcallable`, `dnew`, `curry` etc.);
- Exception: homogenises exceptions and errors;
- Protocol: abstracts resources —and more— accesses (e.g. `hoa://Library` or `hoa://Application`);
- Parameter: manages parameters of libraries;
- Event: adds support of events and listeners;
- Data: adds support of polymorphic data with high performance.

Warning
-------

[](#warning)

This library is deprecated. It has been splitted into:

- [`Hoa\Consistency`](http://central.hoa-project.net/Resource/Library/Consistency),
- [`Hoa\Event`](http://central.hoa-project.net/Resource/Library/Event),
- [`Hoa\Exception`](http://central.hoa-project.net/Resource/Library/Exception),
- [`Hoa\Protocol`](http://central.hoa-project.net/Resource/Library/Protocol),
- [`Hoa\Zformat`](http://central.hoa-project.net/Resource/Library/Zformat).

This library is no longer used.

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

[](#installation)

The core can be placed where you want. We recommand `/usr/local/lib/Hoa` for Unix-like systems and `C:\Program Files\Hoa` for Windows systems.

Then, you have to require `Core.php` and it is enough to use all libraries of Hoa; thus:

```
