Skip to content

Instantly share code, notes, and snippets.

Rafael Goulart rafaelgou

Block or report user

Report or block rafaelgou

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@rafaelgou
rafaelgou / StringUtil.php
Last active Dec 22, 2015
PHP Slug generator class/method
View StringUtil.php
/**
* Description of StringUtil
*
* @author <rafaelgou@gmail.com> Rafael Goulart
*/
class StringUtil {
/**
* Slugify a text and remove accents
*
@rafaelgou
rafaelgou / pagseguro_notifications_proxy.php
Created May 30, 2013
Proxy para notificações do PagSeguro Permite configurar apenas uma conta do PagSeguro que repassa notificações para várias lojas
View pagseguro_notifications_proxy.php
<?php
$logfile = '/var/log/pagseguro/notifications.log';
$handler = fopen($logfile, 'a');
$message = $_SERVER['REMOTE_ADDR'] . ' - ' . date('Y-m-d H:i:s') . ' - ' .
serialize($_REQUEST) . PHP_EOL;
fwrite($handler, $message);
fclose($handler);
$urls = array(
'http://loja1.dominio.com.br/customer/pagseguro_notification.php',
You can’t perform that action at this time.