PHP code example of ocramius / ocra-lorem-module

1. Go to this page and download the library: Download ocramius/ocra-lorem-module 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/ */

    

ocramius / ocra-lorem-module example snippets



echo $this->lorem();
// 10000 lorem!
echo $this->lorem(10000);


echo $this->loremPixel();


echo $this->loremPixel(300, 200, false, 'sports', 'Dummy Text', 2);