Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/robbestad/sarmetadata
A ZF2 module to fetch metadata from any given URI
https://github.com/robbestad/sarmetadata
Last synced: about 1 month ago
JSON representation
A ZF2 module to fetch metadata from any given URI
- Host: GitHub
- URL: https://github.com/robbestad/sarmetadata
- Owner: robbestad
- Created: 2014-01-12T11:36:56.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-06-20T14:52:12.000Z (over 10 years ago)
- Last Synced: 2024-04-13T17:11:01.344Z (9 months ago)
- Language: PHP
- Size: 145 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#Metadata extractor module for ZF2
A ZF2 module to fetch metadata from any given URI
###More info
http://blog.robbestad.com
### How to use
In your composer.json, add the following line
"svenanders/sarmetadata": "dev-master"
Add the following line to your **application.config.php**:
'modules' => array(
'SarMetadata',
),
In your code, include the class:use SarMetadata\SarMetadata;
and then in your functions, use it like this:
$meta = new SarMetadata();
$url="http://www.imdb.com/title/tt1170358/?ref_=nv_sr_1";
$response=$meta->getMeta($url);Provides:
->title
->author
->image
->keywords
->description
->twitter tweetcount
->facebook shares and likesTests:
execute **phpunit vendor/svenanders/sarmetadata/tests/** from the root of your project to run the tests
#####License:
Sven Anders Robbestad (C) 2014