symfony - Whats the best way to code PHP application with a PHP framework that minimises dependencies -


i new php development (and indeed web development , undertaking research on best way code against mvc php framework. i'm looking find out whether there establised technique code application using php framework minimise dependency, if wanted move 1 framework minimum effort , without having start on again. similar technique i've seen databases - doctrine, can use provides generic database layer code against don't have strong dependencies mysql or sqlserver etc, can switch between them @ ease. php frameworks i'm condering zendframework, symfony & cakephp.

as c++/c# developer, instinct develop set of generic wrapper classes job inteface framework such rest of code has no dependencies on 1 php framework, wouldnt want if there library provides already. hope makes sense.

effectively, im asking is: "is there doctrine equivalent php frameworks?"

no. there's not.

the whole point of frameworks provide bunch of stuff make life easier , allow write less code. happens using features of framework - ie, making application dependent on framework. , each framework different.

the way make app not depended on framework not use 1 - silly approach because means more work you.

i've never heard of doctrine, if understand correctly, different scenario. mysql, postgres, sql server etc kind of meant implementing same thing - sql. in cases there minor differences in sytax, abstraction layers can account allowing switch between databases easily. in cases 1 implements features not have, there's nothing abstraction layer can help.

unlike implementations of sql, frameworks don't have agreed upon set of standards, way make easy switch between them isn't possible.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -