In composer.json add:
require {"pragma-framework/docs": "dev-master"}
Options needed:
- DB_HOST (default 'localhost')
- DB_NAME
- DB_USER (default 'root')
- DB_PASSWORD
- DB_PREFIX (default 'pragma_')
- DOC_STORE (default 'data/')
- EXTRA_PATH (default empty)
DOC_STORE directory need read/write access for www-data.
EXTRA_PATHis used in the Document::extract_text method. This method allows you to get the text content of a document and requires textract tool on the server. EXTRA_PATH is helpfull when the PATH accessible by PHP does not contain the directory where textract is.
As you already know,tThis functionnality requires the textract tool on the server (https://github.com/dbashford/textract) and several dependencies based on your OS :
- pdftotext
- tesseract
- drawingtotext (for DXF files)
- antiword
- unrtf