Skip to content

Instantly share code, notes, and snippets.

Composer update without PHP environment checking

Hi there, welcome for another blog post on Composer.

Since version 1.0.0-alpha9 composer has a new flag for the install and update commands. I'm talking about the --ignore-platform-reqs flag. From the changelog:

Added --ignore-platform-reqs to install/update commands to install even if you are missing a php extension or have an invalid php version.
@KhuloodBatis
KhuloodBatis / Hex to Rgb
Created August 14, 2022 07:56
convert hex to rgd color
function stringToNumber(s) {
let abc = [ '0','1','2','3','4','5','6','7','8','9','A' ,' B' , 'C' , 'D' , 'E' ,'F'];
//let mark = ['-','!','_','?','=',')','(','/','*','{','@',',','`','#','$','%','^','&','*','+','?','/','<','>']
if (typeof s !== 'string' || !abc.includes(s.toUpperCase())) {
return 'wrong'
}
//