Skip to content

Instantly share code, notes, and snippets.

View GrimalDev's full-sized avatar
🎯
Focusing

Grimaldi Baptiste GrimalDev

🎯
Focusing
View GitHub Profile
@VijitCoder
VijitCoder / determine-images-similarity.php
Last active August 1, 2023 09:19 — forked from akosnikhazy/compare-images-class
PHP class for comparing two images and determine how much they similar, in percentages.
<?php
/**
* Compare two images and determine how much they similar, in percentages.
*/
class ImagesComparator
{
private const ACCEPTED_IMAGE_TYPES = [IMAGETYPE_JPEG, IMAGETYPE_PNG];
/**
* Calculate the images similarity in percentages.
@davidnknight
davidnknight / send_email.php
Created July 20, 2012 12:01
PHP Send Mail (Plaintext and HTML)
<?php
/**
* Send email
* @param string|array $email
* @param object $from
* @param string $subject
* @param string $message
* @param string $headers optional
*/
function send_email($email, $from, $subject, $message, $headers = null)