承接 fyre/iterator 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

fyre/iterator

Composer 安装命令:

composer require fyre/iterator

包简介

An iterator library.

README 文档

README

FyreIterator is a free, open-source iteration library for PHP.

Table Of Contents

Installation

Using Composer

composer require fyre/iterator

In PHP:

use Fyre\Utility\Iterator;

Basic Usage

$iterator = new Iterator();

Methods

Add

Add a test

  • $name is a string representing the test name.
  • $callback is the callback to execute.
$iterator->add($name, $callback);

All

Get all tests.

$tests = $iterator->all();

Clear

Clear all tests.

$iterator->clear();

Count

Get the number of tests.

$count = $iterator->count();

Get

Get a specific test callback.

  • $name is a string representing the test name.
$test = $iterator->get($name);

Has

Determine whether a test exists.

  • $name is a string representing the test name.
$hasTest = $iterator->has($name);

Remove

Remove a test.

  • $name is a string representing the test name.
$iterator->remove($name);

Run

Run the tests and return the results.

  • $iterations is a number representing the number of iterations to run, and will default to 1000.
$results = $iterator->run($iterations);

统计信息

  • 总下载量: 33
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-06-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固