2017 © Pedro Peláez
 

library omni

Helps with every day nuisances like path or EOL handling.

image

nochso/omni

Helps with every day nuisances like path or EOL handling.

  • Sunday, April 17, 2016
  • by nochso
  • Repository
  • 1 Watchers
  • 0 Stars
  • 236 Installations
  • PHP
  • 4 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 13 Versions
  • 6 % Grown

The README.md

nochso/omni

License GitHub tag Build Status SensioLabsInsight Scrutinizer Code Quality Coverage Status, (*1)

nochso/omni helps with every day nuisances like path or EOL handling., (*2)

  • Simple solutions: This is not an alternative for more specific packages.
  • Fully tested.
  • Strictly follows Semantic Versioning 2.0.0.
  • Clean code with low complexity.
  • No dependencies other than symfony/polyfill-mbstring.
  • Not a framework.
  • Not another object-based wrapper around the standard PHP library.
  • One less reason to stumble upon the PHP.net comment section or have a Stackoverflow deja-vu.

Table of contents: - nochso/omni - Requirements - Installation - API summary - Change log - Contributing - License, (*3)

Requirements

PHP 5.6.0, 7.0 or higher., (*4)

Installation and autoloading via Composer is recommended. You're free to use any other PSR-4 compatible autoloader on folder src/., (*5)

Optional requirements

fabpot/php-cs-fixer is required by namespace nochso\Omni\PhpCsfixer., (*6)

Installation

composer require nochso/omni

You can now use the namespace \nochso\Omni., (*7)

API summary

For full API documentation, see API.md., (*8)

This is a short summary of namespaces, classes, interfaces and traits., (*9)

  • N nochso\Omni
    • C ArrayCollection wraps an array, providing common collection methods.
    • C Arrays class provides methods for array manipulation missing from default PHP.
    • C Dot allows easy access to multi-dimensional arrays using dot notation.
    • C DotArray holds a multi-dimensional array and wraps the static API of \nochso\Omni\Dot.
    • C EOL detects, converts and returns information about line-endings.
    • C Exec creates objects that help manage \exec() calls.
    • C Folder handles file system folders.
    • C Multiline string class for working with lines of text.
    • C Numeric validates and converts mixed types to numeric types.
    • C OS OS.
    • C Path helps keep the directory separator/implode/trim/replace madness away.
    • C Strings class provides methods for string handling missing from default PHP.
    • C Type returns PHP type information.
    • C VcsVersionInfo enriches an internal VersionInfo with the latest tag and current repository state.
    • C VersionInfo consists of a package name and version.
  • N nochso\Omni\Format
    • C Bytes formats a quantity of bytes using different suffixes and binary or decimal base.
    • C Duration formats seconds or DateInterval objects as human readable strings.
    • C Quantity formats a string depending on quantity (many, one or zero).
  • N nochso\Omni\PhpCsFixer
    • C DefaultFinder respects ignore files for Git, Mercurial and Darcs.
    • C PrettyPSR lies inbetween FixerInterface's PSR2 and Symfony level.

Change log

See CHANGELOG.md for the full history of changes between releases., (*10)

[0.3.8]

Added

  • Add placeholder %s for quantity in Format\Quantity.

Changed

  • DurationFormat can now handle milliseconds.

[0.3.7] - 2016-04-16

Fixed

  • Fix handling of absolute scheme:// paths in Path::combine

Contributing

Feedback, bug reports and pull requests are always welcome., (*11)

Please read the contributing guide for instructions., (*12)

License

This project is released under the MIT license. See LICENSE.md for the full text., (*13)

The Versions

17/04 2016

dev-master

9999999-dev

Helps with every day nuisances like path or EOL handling.

  Sources   Download

MIT

The Requires

 

The Development Requires

17/04 2016

0.3.8

0.3.8.0

Helps with every day nuisances like path or EOL handling.

  Sources   Download

MIT

The Requires

 

The Development Requires

16/04 2016

0.3.7

0.3.7.0

Helps with every day nuisances like path or EOL handling.

  Sources   Download

MIT

The Requires

 

The Development Requires

07/04 2016

0.3.6

0.3.6.0

Helps with every day nuisances like path or EOL handling.

  Sources   Download

MIT

The Requires

 

The Development Requires

06/04 2016

0.3.5

0.3.5.0

Helps with every day nuisances like path or EOL handling.

  Sources   Download

MIT

The Requires

 

The Development Requires

03/04 2016

0.3.4

0.3.4.0

Helps with every day nuisances like path or EOL handling.

  Sources   Download

MIT

The Requires

 

The Development Requires

29/03 2016

0.3.3

0.3.3.0

Helps with every day nuisances like path or EOL handling.

  Sources   Download

MIT

The Requires

 

The Development Requires

16/03 2016

0.3.2

0.3.2.0

Helps with every day nuisances like path or EOL handling.

  Sources   Download

MIT

The Requires

 

The Development Requires

14/03 2016

0.3.1

0.3.1.0

Helps with every day nuisances like path or EOL handling.

  Sources   Download

MIT

The Requires

 

The Development Requires

08/03 2016

0.3.0

0.3.0.0

Helps with every day nuisances like path or EOL handling.

  Sources   Download

MIT

The Requires

 

The Development Requires

28/02 2016

0.2.0

0.2.0.0

Helps with every day nuisances like path or EOL handling.

  Sources   Download

MIT

The Requires

  • php ^5.6 || ^7.0

 

The Development Requires

28/02 2016

0.1.1

0.1.1.0

Helps with every day nuisances like path or EOL handling.

  Sources   Download

MIT

The Requires

  • php ^5.6 || ^7.0

 

The Development Requires

27/02 2016

0.1.0

0.1.0.0

Helps with every day nuisances like path or EOL handling.

  Sources   Download

MIT

The Requires

  • php ^5.6 || ^7.0

 

The Development Requires