PHP code example of justintadlock / hybrid-carbon

1. Go to this page and download the library: Download justintadlock/hybrid-carbon library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

justintadlock / hybrid-carbon example snippets


if ( file_exists( get_parent_theme_file_path( 'vendor/autoload.php' ) ) ) {
	

Hybrid\Carbon\Image::display( 'featured', $args );

Hybrid\Carbon\Image::display( $type, $args );

// Returns an instance of the Carbon class.
Image::carbon( $type, array $args = [] );

// Returns an instance of the Carbon class after running its make() method.
Image::make( $type, array $args = [] );

// Returns an instance of the found Image object or false.
Image::image( $type, array $args = [] );

// Renders the HTML output of the found Image object if one is found.
Image::display( $type, array $args = [] );

// Returns the HTML string of the found Image object or an empty string.
Image::render( $type, array $args = [] );