This project is not maintained anymore and is abandoned. Feel free to fork and make your own changes if needed.
Thanks to everyone for their valuable feedback and contributions.
PHP class to download the Apache access and error, FTP, CGI, Out and SSH logs available on http://logs.ovh.net from a shared hosting.
composer require crazy-max/cws-ovh-logs-downloader
And download the code:
composer install # or update
See tests/test.php
file sample to help you.
getLogsWeb - Retrieve logs web.
getLogsError - Retrieve logs error.
getLogsFtp - Retrieve logs ftp.
getLogsCgi - Retrieve logs cgi.
getLogsOut - Retrieve logs out.
getLogsSsh - Retrieve logs ssh.
getAll - Retrieve all logs types.
setNic - Set the OVH NIC-handle. (e.g. AB1234-OVH).
setPassword - Set the OVH NIC-handle password.
getDomain - Your OVH domain.
setDomain - Set the OVH domain (e.g. crazyws.fr).
getDlPath - The download directory.
setDlPath - Set the download directory. (default 'logs/')
isDlEnable - Is downloading enable.
setDlEnable - Set download activation. (default false)
isOverwrite - Is overwriting enable.
setOverwrite - Set overwrite activation. (default false)
getError - Get the last error.
All kinds of contributions are welcome 🙌! The most basic way to show your support is to star 🌟 the project, or to raise issues 💬 You can also support this project by becoming a sponsor on GitHub 👏 or by making a Paypal donation to ensure this journey continues indefinitely! 🚀
Thanks again for your support, it is much appreciated! 🙏
MIT. See LICENSE
for more details.