承接 jwhulette/pipes 相关项目开发

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

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

jwhulette/pipes

Composer 安装命令:

composer require jwhulette/pipes

包简介

An PHP ETL Processing Library

README 文档

README

Banner

Tests Packagist PHP Version Laravel Packagist Version Total Downloads

Pipes

Pipes is a PHP Extract Transform Load [ETL] package for Laravel 11+

Installation

composer require jwhulette/pipes

Usage

  1. Create a new EtlPipe object.

  2. Add an extractor to the object to read the input file

    • You can create your own extractor by implementing the ExtractorInterface.php
  3. Add transformers to transform the data

    • You can add as many transformers as you want.

    • You can create your own transformers by implementing the TransformerInterface.php

    • Data is passed to the transformers in the order they are defined

  4. Add a loader to write out the transformed data.

    • You can create your own loader by implementing the LoaderInterface.php
(new EtlPipe())
->extract(new CsvExtractor($this->csvFile));
->transforms([
    new CaseTransformer([], 'lower'),
    new TrimTransformer(),
])
->load(new CsvLoader('saved-file.csv'));
Notes:

Built-in extractors:

  • CsvExtractor
  • XlsxExtractor
  • SqlExtractor

Built-in loaders:

  • CsvLoader
  • SqlLoader

Built-in transformers:

  • CaseTransformer - Change the case of a string
  • DateTimeTransformer - Change the format of a date string
  • PhoneTransformer - Transform a US phone, removing all non numeric characters, and limiting the length to the first 10 digits
  • TrimTransformer - Trim a string
  • ZipcodeTransformer - Transform a US zip code, removing all non numeric characters, and left pad zeros for zip codes less than 5 digits
  • ConditionalTransformer - Transform a column, based on the values of another column

Data is passed to the transformers in the order they are defined

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固