定制 nexuslinkservices/assets-finder 二次开发

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

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

nexuslinkservices/assets-finder

Composer 安装命令:

composer require nexuslinkservices/assets-finder

包简介

README 文档

README

Extension to get array of media assets like MP3, MP4 and JPG.

Latest Version Software License Scrutinizer Code Quality Build Status

Installation

If you use composer, you can add this package by running

composer require galiteintechnologies/assets-finder

Usage

Define and set value of media parameters in configuration yml file like this.

media_options:
    mp3: true
    mp4: true
    jpg: true

You can enable or disable parse media options with true/false value.

If you do not set media options in your configuration file then it will take true values for all options by default.

Example usage:

<?php

use AssetsFinder\MediaParser;

$assetsFinder = new MediaParser;

$content = "First sample file http://www.mywebsite.com/firstsample.mp3 and second file is https://www.mywebsite.com/secondsample.mp4. This is the image link <img src='http://www.mywebsite.com/assets/images/sampleimage.jpg' alt='sample image' title='sample image'> and second image <img src='http://www.mywebsite.com/assets/images/sampleimage2.png' alt='test png image' title='test png image'>";
$result = $assetsFinder->FindMedia($content);

Output

Array
(
    [mp3] => Array
        (
            [0] => http://www.mywebsite.com/firstsample.mp3
        )

    [mp4] => Array
        (
            [0] => https://www.mywebsite.com/secondsample.mp4
        )

    [jpg] => Array
        (
            [0] => http://www.mywebsite.com/assets/images/sampleimage.jpg
        )

)

CONTRIBUTING:

Pull requests are always welcome.

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固