https://github.com/k-phoen/doctor
[DEPRECATED] Metadata extraction made simple
https://github.com/k-phoen/doctor
Last synced: 7 months ago
JSON representation
[DEPRECATED] Metadata extraction made simple
- Host: GitHub
- URL: https://github.com/k-phoen/doctor
- Owner: K-Phoen
- License: mit
- Created: 2015-03-15T00:02:18.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-05-29T19:08:24.000Z (over 9 years ago)
- Last Synced: 2024-05-01T20:12:56.077Z (over 1 year ago)
- Language: PHP
- Homepage:
- Size: 88.9 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Doctor [](https://travis-ci.org/K-Phoen/Doctor)
======Metadata extraction made simple.
This library currently supports the following formats:
* Word-related: odt, doc, docx, rtf;
* pdf;
* markdown.Status
------This project is **DEPRECATED** and should NOT be used.
If someone magically appears and wants to maintain this project, I'll gladly give access to this repository.
Usage
-----```php
$wordExtractor = new \Doctor\Extractor\Word();$doctor = new \Doctor\Doctor([
$wordExtractor,
]);var_dump($doctor->extract('sample_word.docx'));
/*
array(5) {
'author' =>
string(7) "Kévin "
'title' =>
string(13) "Title"
'creation_date' =>
class DateTime#6 (3) {
public $date =>
string(26) "2015-03-15 16:00:44.000000"
public $timezone_type =>
int(3)
public $timezone =>
string(12) "Europe/Paris"
}
'keywords' =>
array(1) {
[0] =>
string(4) "test"
}
'content' =>
string(0) ""
}
*/
```License
-------This library is under the [MIT](LICENSE) licence.