Assessing Grey Level of an Image with PHP

<?php /** * Get gray level of some position of an image */ function get_gray_rgb($image, $x, $y) { $rgb = imagecolorat($image, $x, $y); //level of red, green and blue $red = ($rgb >> 16) & 0xFF; $green = ($rgb >> 8 ) & 0xFF; $blue = $rgb & 0xFF; //formula to calculate…

Basis of Composer for PHP

The Core File composer.json The Keys The require Key Specifying the dependency of the project, the packages that the project depends on. { "require": { "monolog/monolog": "1.0.*" // "package name" : "version" } } Package Name (monolog/monolog) Consist of a vendor name…