Ecosyste.ms: Repos
An open API service providing repository metadata for many open source software ecosystems.
GitHub / zetacomponents / Configuration
JSON API: https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zetacomponents%2FConfiguration
Stars: 4
Forks: 4
Open Issues: 0
License: other
Language: PHP
Repo Size: 772 KB
Dependencies:
158
Created: about 12 years ago
Updated: over 9 years ago
Last pushed: almost 9 years ago
Last synced: 25 days ago
Files
Loading...
Readme
Loading...
Dependencies
composer.json
packagist
- zetacomponents/unit-test * development
- zetacomponents/base ~1.8
- 1.Booleanswhichcanbewrittenas *
- 2.NumbersarewrittenusingEnglishlocaleandcanbeinthefollowingformat *
- 3.Anexplicitstringwhichisenclosedindoublequotes *
- ASimpleName *
- Asimplename *
- BackgroundColor =0xaabbcc
- Commentsarealwaysplaced *
- Commentsarewrittenusinga *
- Currentimplementation *
- DNUM *
- Defaults *
- Defaultvaluescouldalsobestoredinasecondconfigfileiftheapplication *
- Description *
- Designgoals *
- Distributionvsdevsettings *
- EXPONENT_DNUM *
- End *
- Format *
- Groupandsettingidentifierscanonlycontainthecharactersatoz ,AtoZ,0
- Groupsaredefinedbyplacinganidentifierinsidesquarebracketsaloneonthe *
- Handlingdefaultvaluesformissingsettingsisuptotheapplication.Default *
- Hash =4
- Hash =5
- Inadditionitispossibletodefinearraysinasecondwaybyusingsquare *
- Inadditionthegroupnamesmaycontainforwardslashes *
- Inadditionthesquarebracketsmaybeenclosedaroundastringwhichturnsthe *
- Introduction *
- LNUM *
- List =5
- List =Firststring
- List =Secondstring
- LocalVariables *
- LogErrors =false
- MaxSize =400
- MinSize =0
- Mostapplicationsandcomponentsneedstobeabletoconfiguretheirbehavior *
- Multiplecommentlineswillbereadasonecommentwithmultiplelines ,if
- Permission =0666
- Price =10.4
- Requirements *
- Seed =10e5
- Setting =value
- Setting1 =Someexamplestring
- Setting2 =42
- Settingsaredefinedbyplacinganidentifierwithanequalsign *
- Specialconsiderations *
- SystemEnabled =true
- TextColor =0x0102FE
- The *
- Theconfigurationformatconsistsoffourelements *
- Theconfigurationpackageprovidesthetoolstostoreconfigurationsettings *
- ThecurrentimplementationusesonlyINIfilesandoneclass *
- ThefilesarealwaysencodedinUTF-8format ,thismeansitcancontainUnicode
- Thefollowingarelegalnames *
- Thefollowingconsiderationsmustbefollowedwhendesigningthecomponent. *
- Themajorproblemswiththecurrentimplementationare *
- TheoldsyntaxineZpublish3.xwith *
- Theparserwillremoveleadingandtrailingwhitespacefromgroupnames ,
- Thevaluesofsettingsaregenerallyseenasstringswiththeexceptionof *
- Validation *
- Validationisnotdonebytheconfigurationorthereaders *
- a-simple_and.longName *
- a.simple.name *
- a_simple_name *
- agenericconfigurationsystemisneeded.Thegoalofthedesignis *
- allowsyoutohavemultiplesettingswiththesamenamebutindifferent *
- alsotrimmed.Forinstancethefollowcomments *
- andtheseareillegal *
- array *
- arrayintoahash *
- arraysandstrings. *
- arraystospeeduptheprocess.Italsosupportsacomplexoverridesystem *
- asimplename *
- automated.Thismakesitpossibletooptimizetheapplicationbygettingrid *
- away *
- behavioraspossible ,separateautomationintodifferentclassesdepending
- beinusewhencreatingthedistribution.Themainproblemwasthatthesetting *
- beused ,butthatitismucheasierfortheapplicationtoknowhowtohandle
- brackets *
- butaccessingthemcanbedonewithanycase ,thismeansyoucannothavetwo
- charactersifneededorplainASCIIwithoutspecificencoding. *
- closetoimpossibleandwillonlycomplicatethecode. *
- commentstosettings.Forinstancethefilecouldlooklike *
- containsavalue. *
- defaultvalues. *
- describewhatthegroupcontainsorwhatasettingcontrols. *
- differentandsotheclassesmustcaterfortheneedofeachapplication. *
- eZpublishEnterpriseComponent *
- fasteraccesswhenusedonpageloads.Thismeansaslittleautomatic *
- fileasettingwasset. *
- filesorotherconfigurationformats.Theconfigurationpackagecomeswith *
- fill-column *
- formatinternallyintheapplication. *
- formatsthatfittheconfigurationstructure.Whilethefirstversionmaynot *
- forreadingthePHPwillparsethefile.Thefilewillcontainthreevariables ,
- foryourapplication.ConfigurationoptionsarestoredondiskusingINI *
- group.Settingswithoutgroupsarenotallowedandwillcauseanerrortobe *
- groups.Thismeansthatyoudon *
- havealltheotherformatsitshouldbeabletonewoneswitheaselateron. *
- havetobequoted. *
- havingthemexpiredwhentheoriginalconfigurationchanges. *
- inSVNwoulddifferfromthelivesettingmakingithardtogofromonesetup *
- intoproperPHPtypes ,thismeansintegers,floats,booleans,arraysand
- isnotpossible. *
- issued.Thegroupnamewillhaveitsleadingandtrailingwhitespacetrimmed *
- keptinsidethequotesandcharactersarereadliterallywiththeexception *
- line.Thewhitespaceblockbeforethecommenttextonallthelineswillbe *
- longeroccur. *
- mode *
- mustbepossibletoextendthisbyexternaldeveloperstosupportnewformats *
- name. *
- nameofthesiteorwhichemailtransporttouse.Howevertheapplications *
- ofescapedcharacters.Theescapedcharactersare *
- oflayersonedoesnotneed. *
- oneforthegroupsandsettings ,oneforthecommentstogroupsandonefor
- oneline ,itcannotspanmultiplelines
- ontheneed. *
- operations. *
- parser.Oncetheconfigurationisparsedanywhitespacetrimmingshouldno *
- problemsintheconfigurationtheyhavemadeormodified.Thismeans *
- reducesthememoryneededforopcodes. *
- reportingtheexactlocation ,whatiswrongandeventuallyhowtofixit.
- settingsandsettingvalues.Ifyouwishtokeepwhitespaceinastringitwill *
- settingswiththesameidentifieronlydifferingincase. *
- sincethelastcheck. *
- sothattheend-usercanchoosewhattodowithit.Thiscanbeconfiguringthe *
- string.Anysettingthatisreadafterthiswillbeplacedaspartofthis *
- strings.Thismeansthattheconfigurationsettingsarealwaysinaproper *
- stringsastexttheymustbequoted *
- sumoftheirconfigurations.Thisallowstheapplicationtousecachingand *
- supportformanipulationandstorageofINIfilesandcaching. *
- thantheconfigurationsystem. *
- thatonlycontainswhitespacewillbeignored. *
- thecommentitself *
- thedesignshouldmakesurethisisnolongeranissue. *
- thereareemptylinesinbetweencommentstheywillbereadasemptylinesin *
- thevaluefollowsaftertheequalsign.Thesettingandthevaluemustbeon *
- thismeansnothavingtoworryaboutwhitespacesandcasesfornames. *
- time. *
- timebeingassimpleandefficientaspossible.Theneedsofapplicationsare *
- to9 ,underscore
- totheother. *
- tousetheconfigurationfiles.Therearemanypitfallsforbothusageand *
- trimmedawaywhilewhitespaceafterthisblockiskept.Trailingwhitespaceis *
- uptotheapplicationtoprovideavalidationsystem.Thereasonisthat *
- useinthesystem.Thismakesitusemorememorythanitneedsto. *
- validationcanbesocomplexthatprovidingthisintheconfigurationobjectis *
- valuesalsoworktogetherwithvalidation.Ifvalidationfailsthedefaultscan *
- vim *
- wantsit. *
- wantstospendaslittletimeorcodewhenreadingintheconfigurationandso *
- whichallowsasite-access ,extensionorsite
- whichfittheconfigurationstructure. *
- willbecome *
- willmakethesettinganarrayandthevalueisparsedasexplainedabove. *
- willreadinagivenINIfilewhenitisinstantiatedandusescachinginPHP *