2017 © Pedro Peláez
 

library nucleus

Some core PHP utilities

image

sellerlabs/nucleus

Some core PHP utilities

  • Monday, January 23, 2017
  • by bchecketts
  • Repository
  • 2 Watchers
  • 1 Stars
  • 13,412 Installations
  • PHP
  • 4 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 28 Versions
  • 5 % Grown

The README.md

Nucleus Build Status

A standalone PHP utility library. Inspired heavily by similar projects like libphutil. Currently used in personal and work projects. Designed to make working wth PHP a little bit nicer and predictable., (*1)

Requires HHVM 3.6 or PHP 5.6, (*2)

Goal

  • Provide a consistent API for common operations.
  • Gather the most useful bits and snippets under one library.
  • Strong emphasis on strict type checking (e.g. float !== integer).
  • Functional programming ideas and concepts are welcome (I'm new to this).

Core pieces

While Nucleus has a bunch of random crap in it, there are some useful classes worth mentioning:, (*3)

  • Spec: A multi-purpose constraint checking framework that can be easily extended.
  • Validator: Built upon Spec, the Validator component provides an interface for generating UX-friendly messages for a SpecResult.
  • Impersonator: A constructor dependency automocker. Useful for testing classes that have many external dependencies and projects that heavily use container dependency injection.
  • View: An set of classes and utilities for generating clean and safe HTML/Text. It sort of looks like XHP without the XML or de-sugarized React.js code.
  • Std, Arr, and others: We all know the PHP standard library is a mess. There are many failed attempts to fix this out there. This is another one of those attempts. I've created a few classes with a bunch of static aliases that attempt to improve upon it. Yes, there is a performance penalty (validation + at least one more function call), but it makes many operations more predictable and safer.

Building documentation

cd docs
pip install -r requirements.txt
make html

Contributing

Pull requests are accepted on GitHub. Bug fixes and small improvements are welcome. Big ideas will be reviewed and discussed., (*4)

Code Standard: PSR-2 with some additions. See https://github.com/sellerlabs/php-standard for more details., (*5)

License

This code is licensed under the MIT license. See LICENSE for more information., (*6)

The Versions

23/01 2017

dev-master

9999999-dev

Some core PHP utilities

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduardo Trujillo

23/01 2017

v0.6.0

0.6.0.0

Some core PHP utilities

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduardo Trujillo

20/01 2017

dev-mark/iterable-type

dev-mark/iterable-type

Some core PHP utilities

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduardo Trujillo

31/05 2016

dev-null-renderer

dev-null-renderer

Some core PHP utilities

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduardo Trujillo

18/03 2016

v0.5.0

0.5.0.0

Some core PHP utilities

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduardo Trujillo

16/12 2015

v0.4.9

0.4.9.0

Some core PHP utilities

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduardo Trujillo

16/12 2015

v0.4.8

0.4.8.0

Some core PHP utilities

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduardo Trujillo

10/12 2015

v0.4.7

0.4.7.0

Some core PHP utilities

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduardo Trujillo

21/11 2015

v0.4.6

0.4.6.0

Some core PHP utilities

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduardo Trujillo

20/11 2015

v0.4.5

0.4.5.0

Some core PHP utilities

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduardo Trujillo

28/10 2015

v0.4.4

0.4.4.0

Some core PHP utilities

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduardo Trujillo

28/10 2015

v0.4.3

0.4.3.0

Some core PHP utilities

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduardo Trujillo

28/10 2015

v0.4.2

0.4.2.0

Some core PHP utilities

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduardo Trujillo

27/10 2015

v0.4.2-beta3

0.4.2.0-beta3

Some core PHP utilities

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduardo Trujillo

22/10 2015

v0.4.2-beta2

0.4.2.0-beta2

Some core PHP utilities

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduardo Trujillo

22/10 2015

v0.4.2-beta1

0.4.2.0-beta1

Some core PHP utilities

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduardo Trujillo

08/10 2015

v0.4.1

0.4.1.0

Some core PHP utilities

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduardo Trujillo

06/10 2015

v0.4.0

0.4.0.0

Some core PHP utilities

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduardo Trujillo

18/08 2015

v0.3.0

0.3.0.0

Some core PHP utilities

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduardo Trujillo

17/07 2015

v0.2.4

0.2.4.0

Some core PHP utilities

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduardo Trujillo

17/07 2015

v0.2.3

0.2.3.0

Some core PHP utilities

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduardo Trujillo

22/06 2015

v0.2.2

0.2.2.0

Some core PHP utilities

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduardo Trujillo

15/06 2015

v0.2.1

0.2.1.0

Some core PHP utilities

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduardo Trujillo

09/06 2015

0.2.0

0.2.0.0

Some core PHP utilities

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduardo Trujillo

22/01 2015

0.1.3

0.1.3.0

Some core PHP utilities

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduardo Trujillo

19/01 2015

0.1.2

0.1.2.0

Some core PHP utilities

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduardo Trujillo

16/01 2015

0.1.1

0.1.1.0

Some core PHP utilities

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduardo Trujillo

12/01 2015

0.1.0

0.1.0.0

Some core PHP utilities

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduardo Trujillo