Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/navarr/iterable_to_array
A PHP class that handles the boilerplate for converting an iterable into an array
https://github.com/navarr/iterable_to_array
array hacktoberfest iterable php-library
Last synced: about 6 hours ago
JSON representation
A PHP class that handles the boilerplate for converting an iterable into an array
- Host: GitHub
- URL: https://github.com/navarr/iterable_to_array
- Owner: navarr
- Created: 2021-09-29T20:29:34.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-11T02:29:15.000Z (almost 3 years ago)
- Last Synced: 2024-09-19T19:50:41.927Z (about 2 months ago)
- Topics: array, hacktoberfest, iterable, php-library
- Language: PHP
- Homepage:
- Size: 15.6 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# IterableToArray::convert
[![Latest Stable Version](http://poser.pugx.org/navarr/iterable-to-array/v)](https://packagist.org/packages/navarr/iterable-to-array)
[![Total Downloads](http://poser.pugx.org/navarr/iterable-to-array/downloads)](https://packagist.org/packages/navarr/iterable-to-array)
[![Latest Unstable Version](http://poser.pugx.org/navarr/iterable-to-array/v/unstable)](https://packagist.org/packages/navarr/iterable-to-array)
[![License](http://poser.pugx.org/navarr/iterable-to-array/license)](https://packagist.org/packages/navarr/iterable-to-array)
[![Tests](https://github.com/navarr/iterable_to_array/actions/workflows/commit.yml/badge.svg)](https://github.com/navarr/iterable_to_array/actions/workflows/commit.yml)
[![Code Coverage](https://codecov.io/gh/navarr/iterable_to_array/branch/main/graph/badge.svg?token=DJRUJTV2GW)](https://app.codecov.io/gh/navarr/iterable_to_array/)
[![Mutation score](https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fnavarr%2Fiterable_to_array%2Fmain)](https://dashboard.stryker-mutator.io/reports/github.com/navarr/iterable_to_array/main)A simple utility class that handles the boilerplate of converting an iterable into an array.
The goal of this utility is to be an in-place replacement for iterator_to_array whenever one must handle an iterable.
## Installation
composer require navarr/iterable-to-array
## Usage
```php