承接 palmabit/laravel-contact-csv 相关项目开发

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

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

palmabit/laravel-contact-csv

最新稳定版本:1.0.0

Composer 安装命令:

composer require palmabit/laravel-contact-csv

包简介

Save contact input in csv file

README 文档

README

Build Status Scrutinizer Code Quality

This Laravel package allows you to easily save contact data in CSV format.

Installation

To install this package follow these instructions

  1. composer require palmabit/laravel-contact-csv
  2. add Palmabit\ContactCsv\ContactCsvServiceProvider to your config/app.php ServiceProviders
  3. php artisan vendor:publish --provider="Palmabit\ContactCsv\ContactCsvServiceProvider"
  4. create csv file and set the absolute path into configuration file config/packages/Palmabit/ContactCsv/config.php
  5. fill generated config file

Usage

Save new row in csv file

$my_array = ["email" => "test@test.com"];
try {
   ContactCsv::save($newletter);

} catch (KeyExistException $e) {
   echo "Key already exsist";

} catch (ConfigValueException $e) {
   echo "Error in configuration file";
}

Download the csv file

ContactCsv::download();

Tests

You can run tests locally with

  phpunit

The build is continuously run on travis.

Contributing

  • Add tests for any new or changed functionality
  • update doc

Author

palmabit.com

License

LaravelContactCSV it's free and easy to integrate within your existing projects. See the MIT License

Todo

• Setup/write/download more than one CSV file

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 6
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-07-17