meloflavio / owncloud-uploader-bundle
Owncloud Uploader with VichUploaderBundle.
Installs: 2 562
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 2
Open Issues: 0
Type:symfony-bundle
Requires
- php: ^7.1.3|^8.1
- ext-curl: *
- vich/uploader-bundle: ^1.8
Requires (Dev)
- symfony/phpunit-bridge: ^3.0
README
Bundle de integração do ownacloud com vich uploader bundle para notificações.
Installation
####1. Composer Require
composer require meloflavio/owncloud-uploader-bundle
####2. Adicionar variaveis de ambiente
OWNCLOUD_URL=https://owncloud.com OWNCLOUD_USER=user OWNCLOUD_PASSWORD=pass
####3. Adicionar em vich_uploader.yaml Adicionar o storage do owncload demais opções podem ser alteradas
vich_uploader: db_driver: orm storage: '@cds.owncloud_storage' #storage do onwcloud uploader mappings: resposta_anexo: uri_prefix: /ANEXO/RESPOSTAS #pasta padrao para os arquivos do owncloud upload_destination: '%env(resolve:OWNCLOUD_URL)%/remote.php/webdav/' namer: service: Vich\UploaderBundle\Naming\PropertyNamer options: { property: 'fileName' }
####4. Adicionar em melo_flavio_owncloud_uploader.yaml ou adicionar em vich_uploader.yaml
melo_flavio_owncloud_uploader: OWNCLOUD_URL: '%env(resolve:OWNCLOUD_URL)%' OWNCLOUD_USER: '%env(resolve:OWNCLOUD_USER)%' OWNCLOUD_PASSWORD: '%env(resolve:OWNCLOUD_PASSWORD)%'
####5. configure a Entity Siga os passos para uso VichUploaderBundle exemplo em: https://github.com/dustin10/VichUploaderBundle/blob/master/docs/usage.md