Now compatible with Laravel & Nette Frameworks 

Global (non-namespaced) functions are only defined if the function is not defined by another framework.
Updated tokenizer based on symfony, laravel & doctrine codebases