{"id":21467439,"url":"https://github.com/elusivecodes/fyreiterator","last_synced_at":"2025-07-17T22:37:08.466Z","repository":{"id":62508423,"uuid":"375294416","full_name":"elusivecodes/FyreIterator","owner":"elusivecodes","description":"FyreIterator is a free, open-source iteration library for PHP.","archived":false,"fork":false,"pushed_at":"2025-07-03T09:49:23.000Z","size":56,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-15T09:04:12.898Z","etag":null,"topics":["iterator","php","utility"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/elusivecodes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-06-09T09:12:15.000Z","updated_at":"2025-07-03T09:49:12.000Z","dependencies_parsed_at":"2025-03-23T11:35:07.011Z","dependency_job_id":null,"html_url":"https://github.com/elusivecodes/FyreIterator","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/elusivecodes/FyreIterator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elusivecodes%2FFyreIterator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elusivecodes%2FFyreIterator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elusivecodes%2FFyreIterator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elusivecodes%2FFyreIterator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elusivecodes","download_url":"https://codeload.github.com/elusivecodes/FyreIterator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elusivecodes%2FFyreIterator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265672380,"owners_count":23808845,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["iterator","php","utility"],"created_at":"2024-11-23T08:18:07.658Z","updated_at":"2025-07-17T22:37:08.444Z","avatar_url":"https://github.com/elusivecodes.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FyreIterator\r\n\r\n**FyreIterator** is a free, open-source iteration library for *PHP*.\r\n\r\n\r\n## Table Of Contents\r\n- [Installation](#installation)\r\n- [Basic Usage](#basic-usage)\r\n- [Methods](#methods)\r\n\r\n\r\n\r\n## Installation\r\n\r\n**Using Composer**\r\n\r\n```\r\ncomposer require fyre/iterator\r\n```\r\n\r\nIn PHP:\r\n\r\n```php\r\nuse Fyre\\Utility\\Iterator;\r\n```\r\n\r\n\r\n## Basic Usage\r\n\r\n```php\r\n$iterator = new Iterator();\r\n```\r\n\r\n\r\n## Methods\r\n\r\n**Add**\r\n\r\nAdd a test\r\n\r\n- `$name` is a string representing the test name.\r\n- `$callback` is the callback to execute.\r\n\r\n```php\r\n$iterator-\u003eadd($name, $callback);\r\n```\r\n\r\n**All**\r\n\r\nGet all tests.\r\n\r\n```php\r\n$tests = $iterator-\u003eall();\r\n```\r\n\r\n**Clear**\r\n\r\nClear all tests.\r\n\r\n```php\r\n$iterator-\u003eclear();\r\n```\r\n\r\n**Count**\r\n\r\nGet the number of tests.\r\n\r\n```php\r\n$count = $iterator-\u003ecount();\r\n```\r\n\r\n**Get**\r\n\r\nGet a specific test callback.\r\n\r\n- `$name` is a string representing the test name.\r\n\r\n```php\r\n$test = $iterator-\u003eget($name);\r\n```\r\n\r\n**Has**\r\n\r\nDetermine whether a test exists.\r\n\r\n- `$name` is a string representing the test name.\r\n\r\n```php\r\n$hasTest = $iterator-\u003ehas($name);\r\n```\r\n\r\n**Remove**\r\n\r\nRemove a test.\r\n\r\n- `$name` is a string representing the test name.\r\n\r\n```php\r\n$iterator-\u003eremove($name);\r\n```\r\n\r\n**Run**\r\n\r\nRun the tests and return the results.\r\n\r\n- `$iterations` is a number representing the number of iterations to run, and will default to *1000*.\r\n\r\n```php\r\n$results = $iterator-\u003erun($iterations);\r\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felusivecodes%2Ffyreiterator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felusivecodes%2Ffyreiterator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felusivecodes%2Ffyreiterator/lists"}