How to use image manipulation library Glide with plain PHP
问题 I'm trying to use PHP Glide image manipulation library for one of my projects. I've followed their docs given at here - http://glide.thephpleague.com/1.0/simple-example/ . I've created a "routes.php". Here is my code. <?php require 'vendor/autoload.php'; // Setup Glide server $server = League\Glide\ServerFactory::create([ 'source' => 'img/users/source', 'cache' => 'img/users/cache', ]); // echo '<pre>'; // print_r($server); // echo '</pre>'; // You could manually pass in the image path and