# WebP On Demand without composer For your convenience, the library has been cooked down to two files: *webp-on-demand-1.inc* and *webp-on-demand-2.inc*. The second one is loaded when the first one decides it needs to do a conversion (and not simply serve existing image). ## Installing ### 1. Copy the latest build files into your website The build files are distributed [here](https://github.com/rosell-dk/webp-convert-concat/tree/master/build). Open the "latest" folder and copy *webp-on-demand-1.inc* and *webp-on-demand-2.inc* into your website. They can be located wherever you like. ### 2. Create a *webp-on-demand.php* Create a file *webp-on-demand.php*, and place it in webroot, or where-ever you like in you web-application. Here is a minimal example to get started with: ```php true // Show a conversion report instead of serving the converted image. // More options available! // https://github.com/rosell-dk/webp-convert/blob/master/docs/v2.0/converting/introduction-for-converting.md // https://github.com/rosell-dk/webp-convert/blob/master/docs/v2.0/serving/introduction-for-serving.md ]; WebPConvert::serveConverted($source, $destination, $options); ``` Note that the procedure has changed in 2.0. In 1.x, the library supported a `require-for-conversion` option, but this option has been removed in 2.0. It was not really needed, as the example above illustrates. ### 3. Continue the regular install instructions from step 3 [Click here to continue...](https://github.com/rosell-dk/webp-on-demand#3-add-redirect-rules)