PHP Class Thumbor\Url\BuilderFactory

global variable $thumbnailUrlFactory = Thumbor\Url\BuilderFactory::construct( 'http://thumbor.example.com', 'secret' ); elsewhere in your app echo $thumbnailUrlFactory ->urlFrom('http://example.com/llamas.jpg') ->fitIn(320, 240) etc ;
Afficher le fichier Open project: 99designs/phumbor Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( string $server, string | null $secret = null )
construct ( string $server, string | null $secret = null ) : BuilderFactory
url ( string $original ) : Builder

Method Details

__construct() public méthode

public __construct ( string $server, string | null $secret = null )
$server string
$secret string | null

construct() public static méthode

public static construct ( string $server, string | null $secret = null ) : BuilderFactory
$server string
$secret string | null
Résultat BuilderFactory

url() public méthode

public url ( string $original ) : Builder
$original string
Résultat Builder