In the transition from 98 to 99 errors occur. There is no indication where is that you may only use 98 characters.
$IMAGE_RESOURCE = imagecreatetruecolor( 600, 600 );
$black = imagecolorallocate( $IMAGE_RESOURCE, 0x00, 0x00, 0x00 );
$white = imagecolorallocate( $IMAGE_RESOURCE, 0xff, 0xff, 0xff );
imagefilledrectangle( $IMAGE_RESOURCE, 0, 0, 600, 600, $white );
$x = 300;
$y = 300;
$angle = 0;
$property_array = array( 'code' => str_repeat( '1', 99 ), 'rect' => true );
$width = null;
$height = null;
$data = Barcode::gd( $IMAGE_RESOURCE, $black, $x, $y, $angle, 'datamatrix', $property_array, $width, $height );
Notice: Undefined offset: -1 in /Applications/XAMPP/xamppfiles/htdocs/php-barcode-2.0.5/php-barcode.php on line 2275
Notice: Undefined offset: -1 in /Applications/XAMPP/xamppfiles/htdocs/php-barcode-2.0.5/php-barcode.php on line 2281
Notice: Undefined offset: -1 in /Applications/XAMPP/xamppfiles/htdocs/php-barcode-2.0.5/php-barcode.php on line 2293
Notice: Undefined offset: -1 in /Applications/XAMPP/xamppfiles/htdocs/php-barcode-2.0.5/php-barcode.php on line 2295
Notice: Undefined offset: -1 in /Applications/XAMPP/xamppfiles/htdocs/php-barcode-2.0.5/php-barcode.php on line 2301
Notice: Undefined offset: -1 in /Applications/XAMPP/xamppfiles/htdocs/php-barcode-2.0.5/php-barcode.php on line 2303
Notice: Undefined offset: -1 in /Applications/XAMPP/xamppfiles/htdocs/php-barcode-2.0.5/php-barcode.php on line 2305
Notice: Undefined offset: -1 in /Applications/XAMPP/xamppfiles/htdocs/php-barcode-2.0.5/php-barcode.php on line 2307
Notice: Undefined offset: -1 in /Applications/XAMPP/xamppfiles/htdocs/php-barcode-2.0.5/php-barcode.php on line 2321
Warning: Division by zero in /Applications/XAMPP/xamppfiles/htdocs/php-barcode-2.0.5/php-barcode.php on line 2323
Warning: array_fill() expects parameter 2 to be integer, float given in /Applications/XAMPP/xamppfiles/htdocs/php-barcode-2.0.5/php-barcode.php on line 1844
Warning: Division by zero in /Applications/XAMPP/xamppfiles/htdocs/php-barcode-2.0.5/php-barcode.php on line 1870