Code Monkey home page Code Monkey logo

php-transformation-builder-sdk's Introduction

Build Status license Packagist Packagist

Cloudinary PHP Transformation Builder SDK

About

This is an internal Cloudinary SDK. The Cloudinary PHP Transformation Builder SDK allows you to quickly and easily generate transformation strings.

Note

This Readme provides basic installation and usage information. For the complete documentation, see the PHP SDK Guide.

Table of Contents

Key Features

Version Support

SDK Version PHP 5.4 PHP 5.5 PHP 5.6 PHP 7.x PHP 8.x
1.x x x v v v

Installation

composer require "cloudinary/transformation-builder-sdk"

Usage

Setup

use Cloudinary\Transformation;

$transformation = new Transformation();

Transform and Optimize Assets

$transformation->resize(Resize::fill()->width(100)->height(150))->format(Format::auto());

Contributions

  • Ensure tests run locally
  • Open a PR and ensure Travis tests pass

Get Help

If you run into an issue or have a question, you can either:

About Cloudinary

Cloudinary is a powerful media API for websites and mobile apps alike, Cloudinary enables developers to efficiently manage, transform, optimize, and deliver images and videos through multiple CDNs. Ultimately, viewers enjoy responsive and personalized visual-media experiences—irrespective of the viewing device.

Additional Resources

Licence

Released under the MIT license.

php-transformation-builder-sdk's People

Contributors

const-cloudinary avatar wulff avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

php-transformation-builder-sdk's Issues

Incorrect PHPDoc @param object types

Bug report for Cloudinary PHP Transformation Builder SDK

Before proceeding, please update to the latest version and test if the issue persists

Describe the bug in a sentence or two.

Incorrect PHPDoc tag for Cloudinary\Transformation\TransformationResizeTrait::fill. The $gravity argument is documented as taking an instance of Cloudinary\Transformation\Gravity, but in fact expects an instance of Cloudinary\Transformation\GravityQualifier. Presumably this is a bigger issue than just this one argument, but this is where PHPStan complains for me, so I thought I'd start somewhere.

Issue Type (Can be multiple)

  • Build - Can’t install or import the SDK
  • Performance - Performance issues
  • Behaviour - Functions aren’t working as expected (such as generate URL)
  • Documentation - Inconsistency between the docs and behaviour
  • Other (Specify)

suddenly require zip installation

Bug report for Cloudinary PHP Transformation Builder SDK

Describe the bug in a sentence or two.

Since the last update, this package installation is broken on our pieline. The cause is that this package require a zip installation.
Is this behavior normal?
For what i see from the composer.lock, the url of the package has changed from this
"url": "https://github.com/cloudinary/php-transformation-builder-sdk",
to this: "url": "[email protected]:cloudinary/php-transformation-builder-sdk.git",
See the screenshot below for more details.
As a customer, we have been using this package for years with no issues.
There migth be something wrong with your packagist

Issue Type (Can be multiple)

  • [ x] Build - Can’t install or import the SDK
  • Performance - Performance issues
  • Behaviour - Functions aren’t working as expected (such as generate URL)
  • Documentation - Inconsistency between the docs and behaviour
  • Other (Specify)

Steps to reproduce

Composer update to the latest version (1.4)

Error screenshots or Stack Trace (if applicable)

image
image

Operating System

  • Linux
  • [ x] Windows
  • macOS
  • All

Environment and Frameworks (fill in the version numbers)

  • PHP Version - 8.1
  • Framework - Laravel 10.47

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.