Download the PHP package voipforall/tftp-client without Composer
On this page you can find all versions of the php package voipforall/tftp-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download voipforall/tftp-client
More information about voipforall/tftp-client
Files in voipforall/tftp-client
Package tftp-client
Short Description The missing PHP TFTP Client package compliant with RFC 1350
License MIT
Homepage https://github.com/voipforall/tftp-client
Informations about the package tftp-client
TFTP Client for Laravel
A PHP TFTP Client compliant with the RFC 1350 compatible with Laravel Framework
Installation
You can install the package via composer:
Requirements
- PHP ^8.1 (with ext-sockets enabled)
- Laravel 10.x
Quick start
Configure in your .env
file the following entries
To upload files
the put
method will return a boolean accordingly with the success of the operation.
To download files
The get
method will return false
if something goes wrong, if the file exists and is readable will be returned its content.
Publish the config file
To publish the config file use the Artisan command vendor:publish
to copy the config file to your project
or
Multiples TFTP Connections
You can have multiple connections with different TFTP Servers, take a look in the tftp-client.php
config file
The available transfer modes are:
- netascii
- octet (default)
Check the RFC 1350 to more details about the transfer mode
Logging the operations
If you want to log all TFTP operations just set the TFTP_LOGGING
to true
in your .env
file. You can also select the appropriate log channel using the TFTP_LOGGER_CHANNEL
, the defalt log channel will be used if you leave this unset.
Testing
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- VoIPforAll
- All Contributors
License
The MIT License (MIT). Please see License File for more information.