Git Product home page Git Product logo

grav-plugin-get-id3's Introduction

GetID3 Plugin

The GetID3 Plugin is for Grav CMS. It integrates the getID3 library into Grav CMS.

Installation

Installing the GetID3 plugin can be done in one of two ways. The GPM (Grav Package Manager) installation method enables you to quickly and easily install the plugin with a simple terminal command, while the manual method enables you to do so via a zip file.

GPM Installation (Preferred)

The simplest way to install this plugin is via the Grav Package Manager (GPM) through your system's terminal (also called the command line). From the root of your Grav install type:

bin/gpm install get-id3

This will install the GetID3 plugin into your /user/plugins directory within Grav. Its files can be found under /your/site/grav/user/plugins/get-id3.

Manual Installation

To install this plugin, just download the zip version of this repository and unzip it under /your/site/grav/user/plugins. Then, rename the folder to get-id3. You can find these files on GitHub or via GetGrav.org.

You should now have all the plugin files under

/your/site/grav/user/plugins/get-id3

NOTE: This plugin is a modular component for Grav which requires Grav and the Error and Problems to operate.

Post Installation

After enabling the plugin, the getID3 library attempts to install itself automatically. In the event of an error, you will need to install it manually from its homepage.

Extract the files and copy the contents of getid3 subfolder to this plugin's library folder. The structure should look something like this:

| user
  |--  plugins
    |--  get-id3
      |--  library
        |--  extension.cache.dbm.php
        |--  extension.cache.mysql.php
        |--  extension.cache.mysqli.php
        |--  extension.cache.sqlite3.php
        |--  getid3.lib.php
        |--  getid3.php
        |--  ...

The php files with names "write.*.php" are not needed for this plugin, but there's no harm in including them.

Configuration

Before configuring this plugin, you should copy the user/plugins/get-id3/get-id3.yaml to user/config/plugins/get-id3.yaml and only edit that copy.

enabled: true

Usage

This plugin provides no visual functionality. It integrates the getID3 PHP library into GravCMS for other plugins (i.e. the Podcast plugin) to use.

File metadata can be retrieved by code similar to:

$meta = GetID3Plugin::analyzeFile($file)

where $file is a path to a media file.

Credits

  • Initially inspired by the Drupal module getid3
  • Ole Vik, who was patient with my Slack questions.
  • James Heinrich, for his php library.

Licensing Notes

This plugin is licensed under the MIT license. The php library getID3 is licensed under various licenses, as seen here https://github.com/JamesHeinrich/getID3.

To Do

  • None, currently.

grav-plugin-get-id3's People

Contributors

jgonyea avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.