coding-standard
coding-standard copied to clipboard
need rule for Class Name to Check Prefix or PostFix with Specific Directory
for example in laravel there have controller directory.
class in subdirectory of "Http/Controller" directory or under of "Http/Controller" directory should end with "Controller" postfix.
class in subdirectory of "Http/Request" directory or under of "Http/Request" should end with "Request" postfix.
also for custom directory to end with custom postfix.
not to allow classes without with standard declared name in the rule to stay in the forlder.
please provide if it is possible.