Ausraster comprises a set of interfaces around document libraries. The idea is to have one sane interface to interact with documents of many formats. In its current state it has a set of Spreadsheet interfaces - offering a nice API to manipulate .xlsx files by wrapping PHPExcel - and in future I'd like to have interfaces for rich text documents (.docx, Google Docs, .rtf), slideshows (.pptx, Google Slides) etc.
This issue is to add another adapter to the project so it supports a new file format - for example I've started on a CSV adapter in #9. It would be great to get some help to add an adapter for Google Sheets. That way, someone could use the same API whether they want to create an .xlsx file for download, or create a Google Sheet.
This would entail pulling in a library from Composer (as a Suggested package) to work with the Google Sheets API, creating a namespace at HelloFresh\Ausraster\Spreadsheet\<package name>, and building implementations of Document, Worksheet and Cell in a very similar manner to how the PHPExcel adapter currently works.
Please see contributing.md for contribution guidelines, and happy hacking!
Ausrastercomprises a set of interfaces around document libraries. The idea is to have one sane interface to interact with documents of many formats. In its current state it has a set of Spreadsheet interfaces - offering a nice API to manipulate .xlsx files by wrapping PHPExcel - and in future I'd like to have interfaces for rich text documents (.docx, Google Docs, .rtf), slideshows (.pptx, Google Slides) etc.This issue is to add another adapter to the project so it supports a new file format - for example I've started on a CSV adapter in #9. It would be great to get some help to add an adapter for Google Sheets. That way, someone could use the same API whether they want to create an .xlsx file for download, or create a Google Sheet.
This would entail pulling in a library from Composer (as a Suggested package) to work with the Google Sheets API, creating a namespace at
HelloFresh\Ausraster\Spreadsheet\<package name>, and building implementations ofDocument,WorksheetandCellin a very similar manner to how the PHPExcel adapter currently works.Please see contributing.md for contribution guidelines, and happy hacking!