https://github.com/protung/cloudinary-bundle
https://github.com/protung/cloudinary-bundle
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/protung/cloudinary-bundle
- Owner: protung
- License: mit
- Created: 2025-05-09T09:24:46.000Z (about 1 year ago)
- Default Branch: 1.x
- Last Pushed: 2025-12-29T16:14:24.000Z (5 months ago)
- Last Synced: 2026-01-01T20:32:51.828Z (5 months ago)
- Language: PHP
- Size: 98.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Speicher210 CloudinaryBundle
[](https://github.com/Speicher210/CloudinaryBundle/releases)
[](LICENSE.md)

## Install
Add [`speicher210/cloudinary-bundle`](https://packagist.org/packages/speicher210/CloudinaryBundle) to your `composer.json` file:
``` bash
composer require "speicher210/cloudinary-bundle"
```
Register the bundle:
``` php
['all' => true],
// ...
];
```
## Usage
Configure the connection to cloudinary in your `config.yaml` :
``` yaml
speicher210_cloudinary:
url: cloudinary://my-key:my-secret@my-cloud
# The next configuration variables should be defined if they are not present in the URL
# The URL will take precedence
cloud_name: my-cloud
access_identifier:
api_key: my-key
api_secret: my-secret
secure: true
```
The following services will be available:
``` php
$this->get('speicher210_cloudinary.cloudinary'); // Extension of Cloudinary from cloudinary package.
$this->get('speicher210_cloudinary.api'); // Extension of Cloudinary\Api from cloudinary package.
$this->get('speicher210_cloudinary.uploader'); // Extension of Cloudinary\Uploader from cloudinary package.
```
You can pass the same options to the twig filter or function:
``` twig
{{ cloudinary-public-id | cloudinary_url({'width': 50, 'height': 50, 'crop': 'fill'}) }}
{{ cloudinary_url('cloudinary-public-id', {'width': 50, 'height': 50, 'crop': 'fill'}) }}
{{ cloudinary_image_tag('cloudinary-public-id', {'height' : 150}) }}
{{ cloudinary_video_tag('cloudinary-public-id', {'height' : 150}) }}
```
For further documentation see [Cloudinary PHP library](https://github.com/cloudinary/cloudinary_php)
## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
## Security
If you discover any security related issues, please email instead of using the issue tracker.
## Credits
- [Dragos Protung](https://github.com/dragosprotung)
- [All contributors][link-contributors]
## License
The MIT License (MIT). Please see [License File](LICENSE) for more information.
[link-contributors]: ../../contributors