PHP code example of knut7 / php-graphic

1. Go to this page and download the library: Download knut7/php-graphic 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/ */

    

knut7 / php-graphic example snippets





  $graph = new \K7Graphic\Base\K7Graphic([1, 10, 20, 40, 60, 80, 100, 100, 56,34,12,98,5,43, 200, 54, 238, 76,23,98,54,65,78,160, 1, 10, 20, 40, 60, 80, 100, 100,]);
  $graph->create('graphicBar.jpg', 1000, 600)->addValue('bar');
  $graph->create('graphicLine.jpg', 1000, 600)->addValue('line');