vegas-cmf / filesystem
This package is abandoned and no longer maintained.
No replacement package was suggested.
Vegas CMF Filesystem Manager
v1.0.3
2017-02-09 09:06 UTC
Requires
- php: >=5.4
- ext-phalcon: >=1.3.0,<2
- aws/aws-sdk-php: 2.*
- knplabs/gaufrette: 0.1.*
- phalcon/devtools: 1.3.x-dev
- phalcon/incubator: 1.3.*
- phpseclib/phpseclib: 0.3.*
- vegas-cmf/core: 1.*
Requires (Dev)
- phpunit/phpunit: 4.0.*
- satooshi/php-coveralls: 1.0.1
This package is not auto-updated.
Last update: 2022-08-20 06:44:38 UTC
README
Tests
Ftp server
Test suite for FTP adapter uses a local FTP server. In the example we show how to setup local ftp server based on vsftpd service, which you can easily install in your system. In the following steps we show how to install it in the Ubuntu system.
sudo apt-get install vsftpd
sudo vim /etc/vsftpd.conf
Find and setup the following lines:
anonymous_enable=YES
write_enable=YES
local_enable=YES
ftpd_banner=Welcome to Vegas Ftp Test Server
Restart FTP server
sudo service vsftpd restart
Now we should create an example user
sudo groupadd ftp-users
sudo mkdir /home/ftp-user
sudo chmod 775 /home/ftp-user
sudo chown ftp-user:ftp-users /home/ftp-user
sudo useradd -g ftp-users -d /home/ftp-user ftp-user
sudo passwd ftp-user
#(enter the password: test1234)
touch /home/ftp-user/hello.txt
echo "Hello Vegas" > /home/ftp-user/hello.txt
When everything is done, try to login to your local server using ftp-user account.
ftp localhost
Now you can run tests:
./vendor/bin/phpunit