Skip to content

Instantly share code, notes, and snippets.

@vitorbrandao
vitorbrandao / composer.json
Created May 28, 2012 10:45
composer.json for the Smarty template engine (trunk)
{
"name": "smarty/smarty",
"type": "library",
"description": "Smarty - the compiling PHP template engine",
"keywords": ["templating"],
"homepage": "http://www.smarty.net",
"license": "LGPLv3",
"authors": [
{
"name": "Monte Ohrt",
@vitorbrandao
vitorbrandao / php-sanitize-filename
Created April 25, 2011 15:52
Sanitize PHP filenames for UNIX/Linux
<?php
/**
* Helper holds a collection of static methods, useful for generic purposes
*/
class Helper
{
/**
* Returns a safe filename, for a given platform (OS), by replacing all
* dangerous characters with an underscore.