Download the PHP package oihana/php-core without Composer

On this page you can find all versions of the php package oihana/php-core. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package php-core

Oihana PHP - Core library

Oihana Php Core

A lightweight and modular core library for modern PHP development. Designed for clarity, extensibility, and performance, with a consistent, functional-style API.

Latest Version
Total Downloads

Table of Contents

Core Packages

The library provides a suite of pure, side-effect-free utility functions organized into logical namespaces. Here’s a summary of what each package offers:

Namespace Description
oihana\core\accessors Provides unified functions (get, set, has, delete) to safely access and manipulate nested data in both arrays and objects using dot notation.
oihana\core\arrays A rich suite of utilities for array manipulation, including transformations, access, and structural analysis.
oihana\core\bits A set of utilities for bit masks manipulation.
oihana\core\callables A set of utilities for functions and callable definitions.
oihana\core\date Helpers for date formatting and validation.
oihana\core\documents Utilities for placeholder resolution and document formatting.
oihana\core\env Functions to detect the current environment (CLI, Docker, OS) and PHP settings.
oihana\core\json Helpers for advanced JSON serialization and flag validation.
oihana\core\maths Functions for smart numeric rounding operations (ceil, floor, round).
oihana\core\numbers Utilities for handling numbers, such as clamping a value within a specific range.
oihana\core\objects Lightweight helpers for object manipulation, like compressing and deep-setting values.
oihana\core\options Provides Enums for configuring function behaviors (e.g., CompressOption).
oihana\core\reflections Provides reflection utilities to inspect functions and their properties.
oihana\core\strings A comprehensive set of tools for string formatting, case conversion, validation, and generation.
oihana\core (Utils) General-purpose utilities, such as normalize(), ifNull(), isLiteral() and toNumber().

Documentation

Full project documentation is available at: πŸ‘‰ https://bcommebois.github.io/oihana-php-core

Installation

Requires PHP 8.4+

Install via Composer:

Features

The oihana/php-core library provides pure utility functions (no side effects), organized into logical, reusable packages:

🧾 Accessors (oihana\core\accessors)

Unified access for both arrays and objects:

πŸ”’ Arrays (oihana\core\arrays)

Advanced array utilities:

πŸ“… Date (oihana\core\date)

Date manipulation and validation:

πŸ“„ Documents (oihana\core\documents)

Template and placeholder resolution:

πŸ’» Env (oihana\core\env)

Environment detection helpers:

🧬 JSON (oihana\core\json)

Advanced JSON utilities:

βž— Maths (oihana\core\maths)

Smart numeric rounding helpers:

πŸ”’ Numbers (oihana\core\numbers)

🧱 Objects (oihana\core\objects)

Lightweight object manipulation:

βš™οΈ Reflections (oihana\core\reflections)

✍️ Strings (oihana\core\strings)

String formatting, case conversions, and utilities:

πŸ› οΈ Utils (oihana\core)

General-purpose helpers:

Quick Start

Most helpers are loaded via Composer autoload. You can import functions directly using use function and call them.

Examples

Accessors: work with arrays and objects

Arrays: reading and transforming

Strings: formatting and cases

Objects: cleaning data

Date: formatting

Numbers: clamping a value

Running Unit Tests

To run all tests:

To run a specific test file:

Static Analysis (PHPStan)

The library is analysed with PHPStan at the strictest level (max). The configuration lives in phpstan.neon.

Findings that pre-date the introduction of static analysis are frozen in phpstan-baseline.neon, so the command is green and only reports new issues β€” keeping every future change held to the max bar. The goal is to shrink the baseline over time: once you legitimately fix some of its entries, regenerate it with

PHPStan does not need Xdebug and is independent from the test suite.

Contributing

Contributions are welcome! Whether you're fixing a bug, improving an existing feature, or proposing a new one, your help is appreciated.

Please feel free to:

You can find the issues page here: https://github.com/BcommeBois/oihana-php-core/issues

License

This project is licensed under the Mozilla Public License 2.0 (MPL-2.0).

About the author


All versions of php-core with dependencies

PHP Build Version
Package Version
Requires php Version >=8.4
ext-bcmath Version *
ext-intl Version *
ext-posix Version *
psr/container Version ^2.0
welpie21/cbor.php Version ^2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package oihana/php-core contains the following files

Loading the files please wait ...