https://github.com/rgglez/yii-ftpassetmanager
Assets manager for Yii 1.1. Uploads assets to a FTP server. It locks paths so no duplicated uploads are executed.
https://github.com/rgglez/yii-ftpassetmanager
assets-management ftp php yii1
Last synced: 7 months ago
JSON representation
Assets manager for Yii 1.1. Uploads assets to a FTP server. It locks paths so no duplicated uploads are executed.
- Host: GitHub
- URL: https://github.com/rgglez/yii-ftpassetmanager
- Owner: rgglez
- License: bsd-3-clause
- Created: 2023-02-07T00:29:36.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-05T01:11:49.000Z (over 2 years ago)
- Last Synced: 2025-01-28T01:44:31.145Z (8 months ago)
- Topics: assets-management, ftp, php, yii1
- Language: PHP
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# yii-ftpassetmanager
[](https://opensource.org/licenses/BSD-3-Clause)


EFtpAssetManager extends CAssetManager for [Yii](https://yiiframework.com) 1.1, to allow the use of PHP's wrappers
ftp:// or http:// to store the assets. This is useful in a webfarm scenario where the webserver is the frontend
to a number of PHP FastCGI servers which in other way would need to store the assets in a central storage shared
by NFS or some other shared filesystem, or in every server.## Installation
* Unpack or clone the extension to your extensions directory.
* Setup your FTP and HTTP servers in the machine which will serve the assets.## Usage
In the **'components'** section of your *main.php*:
```php
[
// ...'assetManager' => [
'class' => 'EFtpAssetManager',
'lockAssets' => true,
'lockPath' => '/var/assets',
'basePath' => 'ftp://login:password@assets.example.com/',
'baseUrl' => 'https://assets.example.com/',
],
// ...
],
```## License
Copyright © 2008 Rodolfo González González.
See the LICENSE file.