thomasdilts/simplepodcasthost 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

thomasdilts/simplepodcasthost

Composer 安装命令:

composer create-project thomasdilts/simplepodcasthost

包简介

This is a simple php podcast host that fulfills all the needs for podcasting.

README 文档

README

This is a simple php podcast host that fulfills all the needs for podcasting and uses NO database. Simplicity is very important if you decide to specialize the code for your specific use. Most programmers give up at the prospect of changing a very complex program. The only difference between this podcasting host and the many other hosts that cost a lot of money is:

  1. Analytics. This has rather advanced statistics. You should anyway have some sort of website analysis on your server that can compliment the traffic analysis job.
  2. Advertising/apps. You don't get any special advertising or apps with your podcast in this server. However, All the pages in this program are mobile phone friendly so it works in all devices. For advertising, you should register your rss feed with itunes anyway and there you get all the advertising you need. That is your feed will be searchable in almost all podcast apps.

What you get

  1. An rss feed that is an xml formatted file that is submitable to itunes for podcasts. Example: http://pingsteskilstunaweb.se/podcast/rss.php
  2. An all devices friendly webpage that has an index of all your podcasts. Example: http://pingsteskilstunaweb.se/podcast/
  3. An all devices friendly webpage that shows just one specific podcast at the top and then the list of all the other podcasts. This is very important for publishing just one podcast to websites like Facebook. Example: http://pingsteskilstunaweb.se/podcast/viewpodcast.php?podcast=190908
  4. An all devices friendly webpage for embedding. It is only slightly different then index but it looks much better than the index when you embed it inside of an iframe.
  5. A log analyzer webpage that gives basic statistics about traffic listening to your podcasts. Example: http://pingsteskilstunaweb.se/podcast/loganalyze.php
  6. An upload php file that allows you to upload files to the server with a script. Included is a powershell script 'UploadFilesToServer.ps1' that you can put on your windows desktop to do the uploading. For many this will probably not be so useful but for me I use it everytime.

Requirements

Since this code is written to be as simple as possible, there are a few perhaps irritating requirements to fulfill:

  1. You must have a sound file ending with '.mp3' and an image file ending with '.jpg' where the rest of the sound file name and image name are identical. For instance 'abc.mp3' and 'abc.jpg'. These files must be in the subdirectory 'upload'. This script will not work if you don't fullfill this requirement and inlcude both files.
  2. You should have a 'title' inside of your sound mp3 file. If you don't then the title will be the name of the file. You can use the free program ffmpeg and the parameter -metadata title="Sound Track Title" to add a title to your sound mp3 file. Adding 'artist' is a good idea as well.
  3. This will sort the files descending by file name so it is recommended that you have a sortable date as the file name. For instance 20191221.mp3 and 20191221.jpg. Or perhaps 191221.mp3 and 191221.jpg. Otherwise you need to go into the code and change the sorting to something else. For instance, file-date could be something good to sort on instead.

Installation

Zip file installation

This is probably the easiest way to install for most people.

  1. Download the latest version zip file found at https://github.com/thomasdilts/SimplePodcastHost/archive/master.zip
  2. Install all the files found in the zip file onto your server.

Composer installation

If you wish to install with Composer then the command is:

composer create-project thomasdilts/simplepodcasthost

Post installation

After doing one of the installs, this will work immediately with 2 sample files that are already in the "upload" directory. You will probably want to change the file "fav.ico" because it is not what most people want for an icon. At the top of each php file in the root directory is a list of varibles that you will want to change the values to.

Special thanks to

This project has heavily borrowed from other projects. Particularly:

  1. https://github.com/JamesHeinrich/getID3
  2. https://github.com/aaronsnoswell/itunes-podcast-feed

thomasdilts/simplepodcasthost 适用场景与选型建议

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

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

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

围绕 thomasdilts/simplepodcasthost 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2019-09-10