Skip to content

Instantly share code, notes, and snippets.

View mradhi's full-sized avatar
Proud Geek

Mohamed Radhi Guennichi mradhi

Proud Geek
View GitHub Profile
@mradhi
mradhi / Inflect.php
Last active September 18, 2017 13:01 — forked from tbrianjones/Inflect.php
Reserve string state if it the first char is upper
<?php
// original source: http://kuwamoto.org/2007/12/17/improved-pluralizing-in-php-actionscript-and-ror/
/*
The MIT License (MIT)
Copyright (c) 2015
Permission is hereby granted, free of charge, to any person obtaining a copy
@mradhi
mradhi / Controller.lemon
Last active September 19, 2017 13:15
Controller template for MateLemonBundle and MateRestBundle with NelmioApiDocBundle
<?php
/**
* This file generated automatically with MateLemonBundle Generator
* Class: <controllerClassName> Controller
* God: [email protected]
*/
namespace <controllerNameSpace>;
use <entityClass>;
use Nelmio\ApiDocBundle\Annotation\ApiDoc;