[TYPO3-50-general] Valid Package Keys

Malte Jansen mail at maltejansen.de
Mon Feb 25 11:30:49 CET 2008


Hi David!

Check out the FLOW3CGL on forge.typo3.org


Until now we are checking it like this:

|^[A-Z][a-zA-Z0-9]+$|

But I'm pretty sure the numbers of characters a PackageKey must have, 
will be raised.

Until now there are no special characters allowed, because you have to 
use "UpperCamelCase"-style for your package name.

All code should be human readable. So vars- and class-names etc. must 
consists in common of a-zA-Z0-9. But check the FLOW3CGL.

Other unicode characters won't be allowed, because not you should create 
/search for a PackageKey with your Keyboard. So default language is English.

Here you can get the draft of the documentation. 
http://5-0.dev.typo3.org/guide/

Cheers,

Malte



David Bruehlmeier schrieb:
> Hi,
> 
> for the FLOW3 Development Environment, I was looking for a definition of 
> valid package keys. However, the current manual does not yet contain one.
> 
> Therefore, I would like to make the following suggestion:
> 
> PackageKey = UppercaseLetter { AnyCharacter }
> 
> AnyCharacter = UppercaseLetter | LowercaseLetter | Digit | SpecialCharacter
> 
> UppercaseLetter = "A" |"B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | 
> "J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" | "S" | "T" | "U" | 
> "V" | "W" | "X" | "Y" | "Z"
> 
> LowercaseLetter = "a" |"b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | 
> "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | 
> "v" | "w" | "x" | "y" | "z"
> 
> Digit = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9"
> 
> SpecialCharacter = "-"
> 
> To be discussed:
> 
> * Is it mandatory or just a convention to only allow UppercaseLetter as 
> the first letter?
> * Do you want to allow any unicode character or just 'the usual suspects'?
> * Any more (or any less) SpecialCharacter?
> * Minimum length (with the above definition, it would be ok to have a 
> 1char package key)
> 
> What do you think?
> 
> Regards, Dave


More information about the TYPO3-project-5_0-general mailing list