fduch/netrc
最新稳定版本:2.0.1
Composer 安装命令:
composer require fduch/netrc
包简介
netrc manager
关键字:
README 文档
README
Simple netrc files manager
Installation
To install netrc manager into your project please use composer:
php composer.phar require fduch/netrc
Usage
Parsing system-wide or custom netrc is quite simple:
<?php use Fduch\Netrc\Netrc; use Fduch\Netrc\Exception\ParseException; use Fduch\Netrc\Exception\FileNotFoundException; try { // you can specify path to netrc file as an argument of Netrc::parse() method $parsed = Netrc::parse(); // dumps key-value array corresponding to machine.one entry var_dump($parsed['machine.one']); } catch (FileNotFoundException $e) { // cannot locate readable netrc file } catch (ParseException $e) { // something is wrong with your netrc file }
统计信息
- 总下载量: 75.84k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 1
- 依赖项目数: 3
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-03-24