Skip to content

Instantly share code, notes, and snippets.

View tlfbrito's full-sized avatar
🏠
Working from home

Tiago Brito tlfbrito

🏠
Working from home
View GitHub Profile
<?php
namespace YourNameSpace\Request;
use Symfony\Component\OptionsResolver\OptionsResolver;
/**
* This class map request data into a DTO object
*/
abstract class AbstractRequest
<?php
function slugify($text) {
// replace non letter or digits by -
$text = preg_replace('~[^\\pL\d]+~u', '-', $text);
// trim
$text = trim($text, '-');
// transliterate

Keybase proof

I hereby claim:

  • I am tiagobrito on github.
  • I am tlfbrito (https://keybase.io/tlfbrito) on keybase.
  • I have a public key whose fingerprint is 8A05 1C0F D0DC 0341 6A07 7506 0C93 9F1B 2432 57AB

To claim this, I am signing this object:

git config --global core.excludesfile ~/.gitignore
$ printf ".DS_Store\n.idea/*\n" >> ~/.gitignore
@tlfbrito
tlfbrito / create subl terminal command
Created August 23, 2012 00:12
Execute Sublime Text from Terminal Mac os x
sudo ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" /usr/bin/subl