{"id":2974,"date":"2025-06-29T19:11:08","date_gmt":"2025-06-29T18:11:08","guid":{"rendered":"https:\/\/codeflarelimited.com\/blog\/?p=2974"},"modified":"2025-06-29T19:11:10","modified_gmt":"2025-06-29T18:11:10","slug":"how-to-integrate-cloudinary-with-php","status":"publish","type":"post","link":"https:\/\/codeflarelimited.com\/blog\/how-to-integrate-cloudinary-with-php\/","title":{"rendered":"How to Integrate Cloudinary with PHP"},"content":{"rendered":"\n<p>Cloudinary is a powerful cloud-based media management platform that allows you to upload, store, manage, manipulate, and deliver images and videos for your websites and apps. In this guide, I&#8217;ll walk you through the process of integrating Cloudinary with your <a href=\"https:\/\/codeflarelimited.com\/blog\/paystack-payment-integration-with-ajax-and-php\/\">PHP application<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A Cloudinary account (sign up at <a href=\"https:\/\/cloudinary.com\/\">cloudinary.com<\/a> if you don&#8217;t have one)<\/li>\n\n\n\n<li>PHP 7.0 or higher installed on your server<\/li>\n\n\n\n<li>Composer (PHP dependency manager)<\/li>\n\n\n\n<li>Basic knowledge of PHP<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Step 1: Install the Cloudinary PHP SDK<\/h2>\n\n\n\n<p>First, you&#8217;ll need to install the official Cloudinary PHP SDK using Composer.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open your terminal or command prompt.<\/li>\n\n\n\n<li>Navigate to your project directory.<\/li>\n\n\n\n<li>Run the following command:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">composer require cloudinary\/cloudinary_php<\/code><\/pre>\n\n\n\n<p>This will install the Cloudinary PHP SDK and all its dependencies in your project&#8217;s <code>vendor<\/code> directory.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2: Set Up Your Cloudinary Configuration<\/h2>\n\n\n\n<p>After installing the SDK, you need to configure it with your Cloudinary account credentials.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Log in to your Cloudinary dashboard.<\/li>\n\n\n\n<li>From the dashboard, note down your:<\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Cloud name<\/li>\n\n\n\n<li>API Key<\/li>\n\n\n\n<li>API Secret<\/li>\n<\/ul>\n\n\n\n<p><strong>Important:<\/strong> Keep your API secret secure and never expose it in client-side code.<\/p>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li>Create a configuration file (e.g., <code>cloudinary_config.php<\/code>) in your project:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">&lt;?php\nrequire 'vendor\/autoload.php';\n\nuse Cloudinary\\Configuration\\Configuration;\nuse Cloudinary\\Api\\Upload\\UploadApi;\n\n\/\/ Configure Cloudinary\nConfiguration::instance([\n    'cloud' =&gt; [\n        'cloud_name' =&gt; 'your_cloud_name',\n        'api_key' =&gt; 'your_api_key',\n        'api_secret' =&gt; 'your_api_secret'\n    ],\n    'url' =&gt; [\n        'secure' =&gt; true\n    ]\n]);<\/code><\/pre>\n\n\n\n<p>Replace <code>'your_cloud_name'<\/code>, <code>'your_api_key'<\/code>, and <code>'your_api_secret'<\/code> with your actual Cloudinary credentials.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 3: Create a Simple Upload Form<\/h2>\n\n\n\n<p>Now, let&#8217;s create a simple HTML form to upload images to Cloudinary.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Create a file named <code>upload_form.php<\/code>:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"markup\" class=\"language-markup\">&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n&lt;head&gt;\n    &lt;title&gt;Cloudinary PHP Upload&lt;\/title&gt;\n&lt;\/head&gt;\n&lt;body&gt;\n    &lt;h1&gt;Upload Image to Cloudinary&lt;\/h1&gt;\n    &lt;form action=\"upload.php\" method=\"post\" enctype=\"multipart\/form-data\"&gt;\n        &lt;input type=\"file\" name=\"image\" accept=\"image\/*\" required&gt;\n        &lt;button type=\"submit\"&gt;Upload&lt;\/button&gt;\n    &lt;\/form&gt;\n&lt;\/body&gt;\n&lt;\/html&gt;<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Step 4: Create the Upload Handler<\/h2>\n\n\n\n<p>Next, create the PHP script that will handle the file upload to Cloudinary.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Create a file named <code>upload.php<\/code>:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">&lt;?php\nrequire 'cloudinary_config.php';\n\nif ($_SERVER['REQUEST_METHOD'] === 'POST' &amp;&amp; isset($_FILES['image'])) {\n    try {\n        \/\/ Get the temporary file path\n        $filePath = $_FILES['image']['tmp_name'];\n\n        \/\/ Upload the image to Cloudinary\n        $upload = (new UploadApi())-&gt;upload($filePath, [\n            'folder' =&gt; 'php_uploads\/',\n            'public_id' =&gt; 'img_' . time(),\n            'overwrite' =&gt; true,\n            'resource_type' =&gt; 'image'\n        ]);\n\n        \/\/ Display the uploaded image\n        echo \"&lt;h1&gt;Upload Successful!&lt;\/h1&gt;\";\n        echo \"&lt;p&gt;Public ID: \" . htmlspecialchars($upload['public_id']) . \"&lt;\/p&gt;\";\n        echo \"&lt;p&gt;Secure URL: \" . htmlspecialchars($upload['secure_url']) . \"&lt;\/p&gt;\";\n        echo \"&lt;img src='\" . htmlspecialchars($upload['secure_url']) . \"' width='500'&gt;\";\n\n    } catch (Exception $e) {\n        echo \"&lt;h1&gt;Upload Failed&lt;\/h1&gt;\";\n        echo \"&lt;p&gt;\" . htmlspecialchars($e-&gt;getMessage()) . \"&lt;\/p&gt;\";\n    }\n} else {\n    header('Location: upload_form.php');\n    exit;\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Step 5: Test Your Integration<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Start your local PHP server (if testing locally):<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">   php -S localhost:8000<\/code><\/pre>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li>Open your browser and navigate to <code>http:\/\/localhost:8000\/upload_form.php<\/code><\/li>\n\n\n\n<li>Select an image file and click &#8220;Upload&#8221;<\/li>\n\n\n\n<li>If everything is configured correctly, you should see the uploaded image with its Cloudinary URL<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Advanced Features<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1. Image Transformations<\/h3>\n\n\n\n<p>Cloudinary allows you to apply transformations to your images on the fly. Here&#8217;s how to generate a transformed image URL:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">$transformedUrl = cloudinary_url($upload['public_id'], [\n    'width' =&gt; 300,\n    'height' =&gt; 200,\n    'crop' =&gt; 'fill',\n    'effect' =&gt; 'sepia',\n    'quality' =&gt; 'auto'\n]);\n\necho \"&lt;img src='\" . htmlspecialchars($transformedUrl) . \"'&gt;\";<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">2. Deleting an Image<\/h3>\n\n\n\n<p>To delete an uploaded image:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">&lt;?php\nrequire 'cloudinary_config.php';\n\n$publicId = 'php_uploads\/img_1234567890'; \/\/ Replace with your actual public ID\n\ntry {\n    $result = (new UploadApi())-&gt;destroy($publicId);\n    echo \"Image deleted successfully: \" . print_r($result, true);\n} catch (Exception $e) {\n    echo \"Error deleting image: \" . $e-&gt;getMessage();\n}<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">3. Listing Resources<\/h3>\n\n\n\n<p>To list all uploaded images in a specific folder:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">&lt;?php\nrequire 'cloudinary_config.php';\n\ntry {\n    $resources = (new AdminApi())-&gt;assets([\n        'type' =&gt; 'upload',\n        'prefix' =&gt; 'php_uploads\/',\n        'max_results' =&gt; 10\n    ]);\n\n    echo \"&lt;h1&gt;Uploaded Images&lt;\/h1&gt;\";\n    foreach ($resources['resources'] as $resource) {\n        echo \"&lt;img src='\" . htmlspecialchars($resource['secure_url']) . \"' width='200'&gt;&lt;br&gt;\";\n        echo \"Public ID: \" . htmlspecialchars($resource['public_id']) . \"&lt;br&gt;&lt;br&gt;\";\n    }\n} catch (Exception $e) {\n    echo \"Error listing resources: \" . $e-&gt;getMessage();\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Security Considerations<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Never expose your API secret<\/strong> in client-side code.<\/li>\n\n\n\n<li>For production, consider:<\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Storing credentials in environment variables<\/li>\n\n\n\n<li>Implementing server-side validation for uploads<\/li>\n\n\n\n<li>Setting upload limits (file size, type, etc.)<\/li>\n<\/ul>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Use Cloudinary&#8217;s signing mechanism for secure transformations if needed.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>You&#8217;ve now successfully integrated Cloudinary with your PHP application! This gives you powerful media management capabilities including:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Secure cloud storage for your images and videos<\/li>\n\n\n\n<li>On-the-fly image transformations<\/li>\n\n\n\n<li>Automatic optimization and format conversion<\/li>\n\n\n\n<li>CDN delivery for fast loading times<\/li>\n<\/ul>\n\n\n\n<p>From here, you can explore more advanced features like:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Video uploads and transformations<\/li>\n\n\n\n<li>Automatic tagging and moderation<\/li>\n\n\n\n<li>AI-based image analysis<\/li>\n\n\n\n<li>Advanced delivery options<\/li>\n<\/ul>\n\n\n\n<p>Remember to check the <a href=\"https:\/\/cloudinary.com\/documentation\/php_integration\">official Cloudinary PHP SDK documentation<\/a> for more detailed information and advanced usage.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Cloudinary is a powerful cloud-based media management platform that allows you to upload, store, manage, manipulate, and deliver<\/p>\n","protected":false},"author":1,"featured_media":2975,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[98],"tags":[],"class_list":["post-2974","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-softare-development"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Integrate Cloudinary with PHP<\/title>\n<meta name=\"description\" content=\"Cloudinary is a powerful cloud-based media management platform that allows you to upload, store, manage, manipulate, and deliver images\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/codeflarelimited.com\/blog\/how-to-integrate-cloudinary-with-php\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Integrate Cloudinary with PHP\" \/>\n<meta property=\"og:description\" content=\"Cloudinary is a powerful cloud-based media management platform that allows you to upload, store, manage, manipulate, and deliver images\" \/>\n<meta property=\"og:url\" content=\"https:\/\/codeflarelimited.com\/blog\/how-to-integrate-cloudinary-with-php\/\" \/>\n<meta property=\"article:author\" content=\"https:\/\/facebook.com\/codeflretech\" \/>\n<meta property=\"article:published_time\" content=\"2025-06-29T18:11:08+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-06-29T18:11:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2025\/06\/freepik__the-style-is-candid-image-photography-with-natural__17350.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1216\" \/>\n\t<meta property=\"og:image:height\" content=\"832\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"codeflare\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@codeflaretech\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"TechArticle\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/how-to-integrate-cloudinary-with-php\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/how-to-integrate-cloudinary-with-php\\\/\"},\"author\":{\"name\":\"codeflare\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#\\\/schema\\\/person\\\/7e65653d49add95629f8c1053c5cd76a\"},\"headline\":\"How to Integrate Cloudinary with PHP\",\"datePublished\":\"2025-06-29T18:11:08+00:00\",\"dateModified\":\"2025-06-29T18:11:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/how-to-integrate-cloudinary-with-php\\\/\"},\"wordCount\":437,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/how-to-integrate-cloudinary-with-php\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/06\\\/freepik__the-style-is-candid-image-photography-with-natural__17350.webp\",\"articleSection\":[\"softare development\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/how-to-integrate-cloudinary-with-php\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/how-to-integrate-cloudinary-with-php\\\/\",\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/how-to-integrate-cloudinary-with-php\\\/\",\"name\":\"How to Integrate Cloudinary with PHP\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/how-to-integrate-cloudinary-with-php\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/how-to-integrate-cloudinary-with-php\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/06\\\/freepik__the-style-is-candid-image-photography-with-natural__17350.webp\",\"datePublished\":\"2025-06-29T18:11:08+00:00\",\"dateModified\":\"2025-06-29T18:11:10+00:00\",\"description\":\"Cloudinary is a powerful cloud-based media management platform that allows you to upload, store, manage, manipulate, and deliver images\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/how-to-integrate-cloudinary-with-php\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/how-to-integrate-cloudinary-with-php\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/how-to-integrate-cloudinary-with-php\\\/#primaryimage\",\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/06\\\/freepik__the-style-is-candid-image-photography-with-natural__17350.webp\",\"contentUrl\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/06\\\/freepik__the-style-is-candid-image-photography-with-natural__17350.webp\",\"width\":1216,\"height\":832,\"caption\":\"How to use wloudinary with php\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/how-to-integrate-cloudinary-with-php\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"softare development\",\"item\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/softare-development\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to Integrate Cloudinary with PHP\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/\",\"name\":\"\",\"description\":\"Sustainable solutions\",\"publisher\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#organization\",\"name\":\"Codeflare Limited\",\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/11\\\/codeflare.png\",\"contentUrl\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/11\\\/codeflare.png\",\"width\":1040,\"height\":263,\"caption\":\"Codeflare Limited\"},\"image\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#\\\/schema\\\/person\\\/7e65653d49add95629f8c1053c5cd76a\",\"name\":\"codeflare\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/59cef917c86d965eea581d2747f51bd6382003a68bfce7c8a4dfec98b4cd838d?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/59cef917c86d965eea581d2747f51bd6382003a68bfce7c8a4dfec98b4cd838d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/59cef917c86d965eea581d2747f51bd6382003a68bfce7c8a4dfec98b4cd838d?s=96&d=mm&r=g\",\"caption\":\"codeflare\"},\"description\":\"Latest tech news and coding tips.\",\"sameAs\":[\"https:\\\/\\\/codeflarelimited.com\\\/blog\",\"https:\\\/\\\/facebook.com\\\/codeflretech\",\"https:\\\/\\\/instagram.com\\\/codeflaretech\",\"https:\\\/\\\/x.com\\\/codeflaretech\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCuBLtiYqsajHdqw0uyt7Ofw?sub_confirmation=1\"],\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/author\\\/watcher\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Integrate Cloudinary with PHP","description":"Cloudinary is a powerful cloud-based media management platform that allows you to upload, store, manage, manipulate, and deliver images","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/codeflarelimited.com\/blog\/how-to-integrate-cloudinary-with-php\/","og_locale":"en_US","og_type":"article","og_title":"How to Integrate Cloudinary with PHP","og_description":"Cloudinary is a powerful cloud-based media management platform that allows you to upload, store, manage, manipulate, and deliver images","og_url":"https:\/\/codeflarelimited.com\/blog\/how-to-integrate-cloudinary-with-php\/","article_author":"https:\/\/facebook.com\/codeflretech","article_published_time":"2025-06-29T18:11:08+00:00","article_modified_time":"2025-06-29T18:11:10+00:00","og_image":[{"width":1216,"height":832,"url":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2025\/06\/freepik__the-style-is-candid-image-photography-with-natural__17350.webp","type":"image\/webp"}],"author":"codeflare","twitter_card":"summary_large_image","twitter_creator":"@codeflaretech","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"TechArticle","@id":"https:\/\/codeflarelimited.com\/blog\/how-to-integrate-cloudinary-with-php\/#article","isPartOf":{"@id":"https:\/\/codeflarelimited.com\/blog\/how-to-integrate-cloudinary-with-php\/"},"author":{"name":"codeflare","@id":"https:\/\/codeflarelimited.com\/blog\/#\/schema\/person\/7e65653d49add95629f8c1053c5cd76a"},"headline":"How to Integrate Cloudinary with PHP","datePublished":"2025-06-29T18:11:08+00:00","dateModified":"2025-06-29T18:11:10+00:00","mainEntityOfPage":{"@id":"https:\/\/codeflarelimited.com\/blog\/how-to-integrate-cloudinary-with-php\/"},"wordCount":437,"commentCount":0,"publisher":{"@id":"https:\/\/codeflarelimited.com\/blog\/#organization"},"image":{"@id":"https:\/\/codeflarelimited.com\/blog\/how-to-integrate-cloudinary-with-php\/#primaryimage"},"thumbnailUrl":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2025\/06\/freepik__the-style-is-candid-image-photography-with-natural__17350.webp","articleSection":["softare development"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/codeflarelimited.com\/blog\/how-to-integrate-cloudinary-with-php\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/codeflarelimited.com\/blog\/how-to-integrate-cloudinary-with-php\/","url":"https:\/\/codeflarelimited.com\/blog\/how-to-integrate-cloudinary-with-php\/","name":"How to Integrate Cloudinary with PHP","isPartOf":{"@id":"https:\/\/codeflarelimited.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codeflarelimited.com\/blog\/how-to-integrate-cloudinary-with-php\/#primaryimage"},"image":{"@id":"https:\/\/codeflarelimited.com\/blog\/how-to-integrate-cloudinary-with-php\/#primaryimage"},"thumbnailUrl":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2025\/06\/freepik__the-style-is-candid-image-photography-with-natural__17350.webp","datePublished":"2025-06-29T18:11:08+00:00","dateModified":"2025-06-29T18:11:10+00:00","description":"Cloudinary is a powerful cloud-based media management platform that allows you to upload, store, manage, manipulate, and deliver images","breadcrumb":{"@id":"https:\/\/codeflarelimited.com\/blog\/how-to-integrate-cloudinary-with-php\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codeflarelimited.com\/blog\/how-to-integrate-cloudinary-with-php\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codeflarelimited.com\/blog\/how-to-integrate-cloudinary-with-php\/#primaryimage","url":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2025\/06\/freepik__the-style-is-candid-image-photography-with-natural__17350.webp","contentUrl":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2025\/06\/freepik__the-style-is-candid-image-photography-with-natural__17350.webp","width":1216,"height":832,"caption":"How to use wloudinary with php"},{"@type":"BreadcrumbList","@id":"https:\/\/codeflarelimited.com\/blog\/how-to-integrate-cloudinary-with-php\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/codeflarelimited.com\/blog\/"},{"@type":"ListItem","position":2,"name":"softare development","item":"https:\/\/codeflarelimited.com\/blog\/softare-development\/"},{"@type":"ListItem","position":3,"name":"How to Integrate Cloudinary with PHP"}]},{"@type":"WebSite","@id":"https:\/\/codeflarelimited.com\/blog\/#website","url":"https:\/\/codeflarelimited.com\/blog\/","name":"","description":"Sustainable solutions","publisher":{"@id":"https:\/\/codeflarelimited.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/codeflarelimited.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/codeflarelimited.com\/blog\/#organization","name":"Codeflare Limited","url":"https:\/\/codeflarelimited.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codeflarelimited.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2020\/11\/codeflare.png","contentUrl":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2020\/11\/codeflare.png","width":1040,"height":263,"caption":"Codeflare Limited"},"image":{"@id":"https:\/\/codeflarelimited.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/codeflarelimited.com\/blog\/#\/schema\/person\/7e65653d49add95629f8c1053c5cd76a","name":"codeflare","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/59cef917c86d965eea581d2747f51bd6382003a68bfce7c8a4dfec98b4cd838d?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/59cef917c86d965eea581d2747f51bd6382003a68bfce7c8a4dfec98b4cd838d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/59cef917c86d965eea581d2747f51bd6382003a68bfce7c8a4dfec98b4cd838d?s=96&d=mm&r=g","caption":"codeflare"},"description":"Latest tech news and coding tips.","sameAs":["https:\/\/codeflarelimited.com\/blog","https:\/\/facebook.com\/codeflretech","https:\/\/instagram.com\/codeflaretech","https:\/\/x.com\/codeflaretech","https:\/\/www.youtube.com\/channel\/UCuBLtiYqsajHdqw0uyt7Ofw?sub_confirmation=1"],"url":"https:\/\/codeflarelimited.com\/blog\/author\/watcher\/"}]}},"jetpack_featured_media_url":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2025\/06\/freepik__the-style-is-candid-image-photography-with-natural__17350.webp","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/posts\/2974","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/comments?post=2974"}],"version-history":[{"count":1,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/posts\/2974\/revisions"}],"predecessor-version":[{"id":2976,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/posts\/2974\/revisions\/2976"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/media\/2975"}],"wp:attachment":[{"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/media?parent=2974"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/categories?post=2974"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/tags?post=2974"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}