Skip to content

Instantly share code, notes, and snippets.

@catalin586
catalin586 / tor_curl.php
Created Nov 30, 2018 — forked from zachflower/tor_curl.php
How To Anonymize PHP cURL Requests Using Tor
View tor_curl.php
<?php
$ip = '127.0.0.1';
$port = '9051';
$auth = 'PASSWORD';
$command = 'signal NEWNYM';
$fp = fsockopen($ip,$port,$error_number,$err_string,10);
if(!$fp) { echo "ERROR: $error_number : $err_string";
return false;
@catalin586
catalin586 / php-html-css-js-minifier.php
Created Mar 1, 2016 — forked from taufik-nurrohman/php-html-css-js-minifier.php
PHP Function to Minify HTML, CSS and JavaScript
View php-html-css-js-minifier.php
<?php
/**
* -----------------------------------------------------------------------------------------
* Based on `https://github.com/mecha-cms/mecha-cms/blob/master/system/kernel/converter.php`
* -----------------------------------------------------------------------------------------
*/
// HTML Minifier
function minify_html($input) {
@catalin586
catalin586 / ImageManipulator.php
Created Feb 23, 2016 — forked from philBrown/ImageManipulator.php
Image manipulation class, provides cropping, resampling and canvas resize
View ImageManipulator.php
<?php
class ImageManipulator
{
/**
* @var int
*/
protected $width;
/**
* @var int
You can’t perform that action at this time.