定制 pyrex-fwi/deejaypool-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

pyrex-fwi/deejaypool-bundle

Composer 安装命令:

composer require pyrex-fwi/deejaypool-bundle

包简介

Test project to download files from Digital Dj pool

README 文档

README

Software License Build Status Codacy Badge

Getting started

Installing DeejayPoolBundle

Update your composer.json

"require-dev": {
    "pyrex-fwi/deejaypool-bundle": "dev-master"
}

or

composer require pyrex-fwi/deejaypool-bundle

Update your app/config/AppKernel.php file

<?php

public function registerBundles()
{
    $bundles = [
        // ...
        new DeejayPoolBundle\DeejayPoolBundle()
        // ...
    ];

    // ...
}

?>

Add your account information into config.yml

deejay_pool:
    providerName:
        credentials:
            login: replace_with_yours
            password: replace_with_yours
        configuration:
            root_path: /replace/by/writable/path/destination

Supported providers

deejay_pool:
    av_district:
        credentials:
            login:    %av_district.credentials.login%
            password: %av_district.credentials.password%
        configuration:
            root_path: %av_district.configuration.root_path%

    franchise_pool_audio:
        credentials:
            login:    brubruno
            password: maladede
        configuration:
            root_path: %franchise_pool.configuration.root_path%

    franchise_pool_video:
        credentials:
            login:    %franchise_pool.credentials.login%
            password: %franchise_pool.credentials.password%
        configuration:
            root_path: %franchise_pool.configuration.root_path%
    
    smashvision:
        credentials:
            login:    %smashvision.credentials.login%
            password: %smashvision.credentials.password%

        configuration:
            root_path: %smashvision.configuration.root_path%

Console usages:

  • deejay:discover (Discover prodivers)
  • deejay:pool:status (Check account credentials)
  • php app/console deejay:pool:status franchise_pool_audio -vvv
  • deejay:pool:download (Download files from a specific provider)
  • download files
  • search files

Events

Session events

Name
SESSION_OPENEDAfter successful PoolProviderInterface::open()
SESSION_OPEN_ERRORWhen error occur on PoolProviderInterface::open()
SESSION_CLOSEDAfter successful PoolProviderInterface::close()

Item events

Name
ITEMS_POST_GETLISTAfter successful page items normalization in PoolProviderInterface::getItems()
ITEM_PRE_DOWNLOADTriggered inside PoolProviderInterface::downloadItem() before true request
ITEM_SUCCESS_DOWNLOADDispatched when an item is correctly downloaded
ITEM_ERROR_DOWNLOADDispatched when itemCanBeDownloaded/ItemPreDownload propagation is stopped/Http Download Error /
SEARCH_ITEM_LOCALY

Run tests

  • ant install-deps
  • ant
  • vendor/bin/phpunit -c phpunit.xml --debug --verbose --exclude online
  • vendor/bin/phpunit -c phpunit.xml --debug --verbose --coverage-html Tests/TestData/Coverage --exclude online
  • vendor/bin/phpunit -c phpunit.xml --debug --verbose --coverage-html Tests/TestData/Coverage --debug --stop-on-error -v

Run tests with real credentials

  • export credential login and password

  • vendor/bin/phpunit -c phpunit.xml --group online --debug --verbose

  • gitlab-runner exec docker test:Fonctionnel

Pseudoarchi

Pseudoarchi docker build -t pyrex-fwi/ddp-bundle . docker run -it --rm -v "$PWD":/usr/var/app -w /usr/var/app pyrex-fwi/ddp-bundle bash docker run -it --rm -v "$PWD":/usr/var/app -w /usr/var/app pyrex-fwi/ddp-bundle php tests/app/console.php s:w:c -v --no-mail docker run -it --rm -v ~/PhpstormProjects/webservice-collection-bundle/:/usr/var/app -v ~/.cache/composer:/home/smile/.composer/cache -w /usr/var/app yemistikris/wsc bash docker run -it --rm -v "$PWD":/usr/var/app -w /usr/var/app pyrex-fwi/ddp-bundle ant docker run -it --rm -v "$PWD":/usr/var/app -v /home/chpyr/.cache/composer:/.composer --user 1000:1000 -w /usr/var/app pyrex-fwi/ddp-bundle bash docker run -it --rm -v "$PWD":/usr/var/app -v /home/chpyr/.cache/composer:/.composer --user 1000:1000 -w /usr/var/app pyrex-fwi/ddp-bundle composer update --prefer-lowest --prefer-stable docker run -it --rm -v "$PWD":/usr/var/app -v /home/chpyr/.cache/composer:/.composer --user 1000:1000 -w /usr/var/app pyrex-fwi/ddp-bundle vendor/bin/phpunit --no-coverage

Docker

eval ssh-agent

docker run -it --rm -v "$PWD":/usr/var/app -v /home/chpyr/.cache/composer:/.composer --user 1000:1000 --env "XDEBUG_CONFIG=remote_host=172.17.0.1 remote_port=9000" --env "PHP_IDE_CONFIG=serverName=DEBUG" -w /usr/var/app pyrex-fwi/ddp-bundle vendor/bin/phpunit 

docker run -it --rm \
-v /c/Users/Kris/PhpstormProjects/DeejayPoolBundle:/usr/var/app \
-v /C/Users/Kris/AppData/Local/Composer:/.composer \
-w /usr/var/app pyrex-fwi/ddp-bundle bash
/sbin/ip route|awk '/default/ { print $3 }' ==> 172.17.0.1

--env "XDEBUG_CONFIG=remote_host=172.17.0.1 remote_port=9000" --env "PHP_IDE_CONFIG=serverName=DEBUG"
export XDEBUG_CONFIG="idekey=DEBUG remote_host=172.17.0.1 remote_port=9000" && export PHP_IDE_CONFIG="serverName=DEBUG"

pyrex-fwi/deejaypool-bundle 适用场景与选型建议

pyrex-fwi/deejaypool-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.11k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2015 年 09 月 09 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「bundle」 「downloader」 「Deejay」 「clips」 「Serato」 「Traktor」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 pyrex-fwi/deejaypool-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 pyrex-fwi/deejaypool-bundle 我们能提供哪些服务?
定制开发 / 二次开发

基于 pyrex-fwi/deejaypool-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

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