Download the PHP package rinimisini/php-utilities without Composer

On this page you can find all versions of the php package rinimisini/php-utilities. 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-utilities

PHP Utilities

PHP Utilities is a PHP library that provides implementations of various JavaScript built-in classes like Set, Map, and others. This library allows PHP developers to work with similar functionality found in JavaScript, but adapted for PHP environments.

Features

Requirements

Installation

You can install this package via Composer:

Usage

Set Class

The Set class behaves similarly to JavaScript's Set. It allows storing unique elements and provides methods to perform common set operations.

Creating a Set

Adding Elements to the Set

Checking if an Element Exists

Deleting an Element

Clearing the Set

Getting the Set Size

Set Operations

The Set class supports common set operations like union, intersection, and difference.

Union

Intersection

Difference

Iterating Over the Set

Serialization

Map Class

The Map class behaves similarly to JavaScript's Map. It allows storing key-value pairs where keys can be of any type, including objects.

Creating a Map

Setting Key-Value Pairs

Retrieving Values

Checking if a Key Exists

Deleting an Entry

Iterating Over the Map

Using forEach

Retrieving Keys and Values

Clearing the Map

WeakSet Class

The WeakSet class allows storing objects weakly, meaning they will be garbage collected when no other references exist.

Creating a WeakSet

Adding Objects to the WeakSet

Checking if an Object Exists

Removing an Object

Clearing the WeakSet

Iterating Over the WeakSet

Future Plans

The current release includes JavaScript-inspired classes such as:

Future releases may include additional JavaScript-inspired classes such as:

Contributing

Contributions are welcome! If you'd like to contribute, feel free to open a pull request or submit issues for features and bug reports.

Steps to Contribute

  1. Fork this repository.
  2. Create a new feature branch: git checkout -b feature/my-feature.
  3. Commit your changes: git commit -m 'Add some feature'.
  4. Push the branch: git push origin feature/my-feature.
  5. Open a Pull Request.

License

This project is licensed under the MIT License. See the LICENSE file for more details.


All versions of php-utilities with dependencies

PHP Build Version
Package Version
Requires php Version ^8.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 rinimisini/php-utilities contains the following files

Loading the files please wait ....