Cloudinary\Uploader::text PHP Method

text() public static method

public static text ( $text, $options = [] )
    public static function text($text, $options = array())
    {
        $params = array("timestamp" => time(), "text" => $text);
        foreach (Uploader::$TEXT_PARAMS as $key) {
            $params[$key] = \Cloudinary::option_get($options, $key);
        }
        return Uploader::call_api("text", $params, $options);
    }

Usage Example

Esempio n. 1
0
 public function test_text()
 {
     $result = Uploader::text("hello world");
     $this->assertGreaterThan(1, $result["width"]);
     $this->assertGreaterThan(1, $result["height"]);
 }