定制 mauris/octurlpus 二次开发

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

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

mauris/octurlpus

Composer 安装命令:

composer require mauris/octurlpus

包简介

Octurlpus - making URLs meaningful through OEmbed

README 文档

README

#Octurlpus

Making URLs meaningful to code

Build Status

##Intro

Octurlpus helps you to convert URLs into meaningful data that you can use to integrate services into your PHP application.

##Demo

Having a YouTube URL that your user has given your application would mean that you need to parse the URL and fetch the data from YouTube via YouTube's API. However with Octurlpus:

$octurlpus = new Octurlpus();
$data = $octurlpus->request('http://www.youtube.com/watch?v=iDpMnzRna6Y&feature=plcp');

You will be able to get the data about the YouTube video as:

{
  "provider_url":"http:\/\/www.youtube.com\/",
  "thumbnail_url":"http:\/\/i2.ytimg.com\/vi\/iDpMnzRna6Y\/hqdefault.jpg",
  "title":"How-to: Installing Packfire Framework for PHP on Windows via CLI",
  "html":"\u003ciframe width=\"480\" height=\"270\" src=\"http:\/\/www.youtube.com\/embed\/iDpMnzRna6Y?fs=1\u0026feature=oembed\" frameborder=\"0\" allowfullscreen\u003e\u003c\/iframe\u003e",
  "author_name":"Packfire Framework",
  "height":270,
  "thumbnail_width":480,
  "width":480,
  "version":"1.0",
  "author_url":"http:\/\/www.youtube.com\/channel\/UCu0KZBrcqqRLG-2im1gf6qg",
  "provider_name":"YouTube",
  "type":"video",
  "thumbnail_height":360
}

With the data, you can easily integrate videos, links, embeds, photos into your application.

##oEmbed

oEmbed is a open embedding standard that allows consumers to get data about a URL and to integrate these data seamlessly into their applications.

Some of the providers in Octurlpus use oEmbed to retrieve the data from the providers' services by implementing the standard.

Learn more about oEmbed at: http://oembed.com/

##License

Octurlpus is released open source under the New BSD License.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2013-11-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固