baha2rmirzazadeh/phpscanner
Composer 安装命令:
composer require baha2rmirzazadeh/phpscanner
包简介
A php library to handle input stream. It inspired from Java Scanner class.
README 文档
README
This library contains efficient classes and methods to work with input stream data for example: get numbers and strings from input stream(keyboard), also have some features for open and read files.
This library inspired from Scanner class in Java.
Features
Get input stream as integer, float, string etc. Also it provide some methods to open and read files.
You can find more information in documentation.
Installation
Use [Composer] to install this package:
$ composer require baha2rmirzazadeh/phpscanner
Example
use PHPScanner\Scanner\Scanner; $scn = new Scanner(); $a = $scn->nextString(); print $a; $m = $scn->nextFloat(); print $m; $a = array(); for ($i = 0; $i < 3; $i++) { $a[$i] = $scn->nextInt(); } print_r($a); $file_reader = new Scanner("C:\Users\Baha2r\Desktop\A.txt"); $file = ""; while ($file_reader->hasNext()) { $file .= $file_reader->nextLine(); } $file_reader->close(); print $file; echo "\n";
Classes and Methods description
All of classes and methods have documentation, you can read them and figure out how they work
Authors
- [Bahador Mirzazadeh]
- E-Mail: [baha2r.mirzazadeh98@gmail.com]
License
All contents of this package library are licensed under the [MIT license].
baha2rmirzazadeh/phpscanner 适用场景与选型建议
baha2rmirzazadeh/phpscanner 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 79 次下载、GitHub Stars 达 1, 最近一次更新时间为 2019 年 10 月 02 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「cli」 「input」 「prompt」 「scanner」 「input stream」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 baha2rmirzazadeh/phpscanner 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 baha2rmirzazadeh/phpscanner 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 baha2rmirzazadeh/phpscanner 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Yii2 map input widget. Allows you to select geographcal coordinates via a human-friendly inteface.
Widget to add a remaining character counter to text inputs and textareas
Native (browser) color input field for SilverStripe
Integration bundle for Aura.Input with Aura.Filter
phpABLE file-system library
Input validation pattern with basic validators and field set validators
统计信息
- 总下载量: 79
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 12
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-10-02