yish/laravel-curlftp

此包已被废弃且不再维护。未建议替代包。

laravel与curl-ftp文件系统(包装器)

1.0.2 2020-09-09 04:40 UTC

This package is auto-updated.

Last update: 2021-02-15 16:37:51 UTC


README

此包简单提供 vladimir-yuldashev/flysystem-curlftp 门面(包装器)与laravel的结合。

Latest Version on Packagist Build Status Total Downloads

安装

您可以通过composer安装此包

composer require yish/laravel-curlftp

要求

Laravel 5.8 或更高版本。

用法

在您的 config/filesystems.php 中,添加驱动以支持。

'curlftp' => [
    'driver'   => 'curl-ftp',
    'host' => 'ftp.example.com',
    'username' => 'username',
    'password' => 'password',
    
    /** optional config settings */
    'port' => 21,
    'root' => '/path/to/root',
    'utf8' => true,
    'ssl' => true,
    'timeout' => 90,		// connect timeout
    'sslVerifyPeer' => 0, // using 0 is insecure, use it only if you know what you're doing
    'sslVerifyHost' => 0, // using 0 is insecure, use it only if you know what you're doing
    
    /** proxy settings */
    'proxyHost' => 'proxy-server.example.com',
    'proxyPort' => 80,
    'proxyUsername' => 'proxyuser',
    'proxyPassword' => 'proxypassword',
],

变更日志

请参阅 CHANGELOG 了解最近的变化。

贡献

请参阅 CONTRIBUTING 了解详情。

安全

如果您发现任何与安全相关的问题,请通过电子邮件 mombuartworks@gmail.com 而不是使用问题跟踪器来报告。

鸣谢

许可

MIT 许可证(MIT)。请参阅 许可文件 了解更多信息。