Jump to content


Photo

Nicely Documented Simple Php Framework?


  • Please log in to reply
15 replies to this topic

#1 Stefany93

Stefany93

    Advanced Member

  • Members
  • PipPipPip
  • 170 posts
  • Age:20

Posted 18 December 2012 - 05:07 PM

Hello fellows,

I want to study frameworks but the problem is that the big ones like Zend and Yii are very difficult to be understood by someone who has never dealt with frameworks before. I tried going over to simpler ones, but their documentation is simply horrible - "This framework is documented by itself" Told you, simply terrible.

So if you can be so kind to point me to a simple and well documented framework so that I have get the hung of these stuff, I will be very grateful.

Thank you!

Best Regards
Stefany

"Never take counsel of your fears!" - Stonewall Jackson
My site - http://dyulgerova.info


#2 parkerj

parkerj

    Advanced Member

  • Members
  • PipPipPip
  • 167 posts
  • LocationBoston, MA

Posted 18 December 2012 - 06:24 PM

You can check out http://kissmvc.com/. It is a one file PHP framework, and the documentation seems substantial for just one file.

eduTrac ERP | College Management System


#3 trq

trq

    Advanced Member

  • Administrators
  • 31,020 posts
  • LocationSydney, Australia.

Posted 18 December 2012 - 09:36 PM

Laravel is an excellent framework. http://laravel.com

http://thorpesystems.com | http://proemframework.org | http://github.com/trq

SmtpCatcher - A very simple mock sendmail useful for testing PHP mail scripts.
OPM - My Linux package manager.


#4 gizmola

gizmola

    Advanced Member

  • Administrators
  • 4,126 posts
  • LocationLos Angeles, CA USA

Posted 19 December 2012 - 01:00 AM

I'm a big fan of the Symfony2 documentation. It's a component framework (a framework made up of a number of components, any one of which can be used independently of the framework) which has become THE framework/library trend in the last year.

It also has a micro framework based on it named Silex, which is more minimal/library based yet shares the same components as the full stack Symfony2, and microframeworks are cool for learning the pieces of a framework without all the complexity (see trq's Proem for another example). I personally wouldn't advise you spend a minute with any framework that isn't already using Composer.

With that said, any of these frameworks comes with a fair amount of complexity, unless you have a good idea what MVC, Validators, Forms, ORM's, Templates etc. fit into the mix. Often what I find is that the frameworks have good introduction to the surface level, but as soon as you want to do something that veers from the simplistic, you're quickly in over your head, and this is why many framework people don't even try to have much in the way of documentation.

#5 Stefany93

Stefany93

    Advanced Member

  • Members
  • PipPipPip
  • 170 posts
  • Age:20

Posted 22 December 2012 - 01:59 PM

Sorry it took me so long to reply, thanks to everyone for the links and suggestions!

@gizmola, thank you so much for the detailed explanation, I value it a lot!

"Never take counsel of your fears!" - Stonewall Jackson
My site - http://dyulgerova.info


#6 jazzman1

jazzman1

    Advanced Member

  • Gurus
  • 2,660 posts
  • LocationMississauga, Canada

Posted 23 December 2012 - 03:10 PM

@Stefi, I have good knowledges in cakephp, but.....I'm suggesting you to start with Symfony2.

#7 Jessica

Jessica

    This is not my name.

  • Gurus
  • 8,982 posts
  • LocationDallas, TX
  • Age:26

Posted 23 December 2012 - 08:45 PM

I love CakePHP, it's easy, great MVC, good docs.
My goal in replying to posts is to help you become a better programmer, including learning how to debug your own code and research problems. For that reason, rather than posting the solution, I reply with tips and hints on how to find the solution yourself. See below for useful links when you get stuck.

How to Get Good Help: How to Ask Questions | Don't be a help vampire
Debugging Your Code: Debugging your SQL | What does a php function do? | What does a term mean? | Don't see any errors?
Things You Should Do: Normalize Your Data | use print_r() or var_dump()
Lulz: "Functions should not have side effects." - trq

Please take a look at my new PHP/Web Dev blog: The Web Mason - Thanks!!

#8 Electro808

Electro808

    Newbie

  • New Members
  • Pip
  • 4 posts

Posted 24 December 2012 - 07:00 PM

I hit a brick wall eventually with every framework I try, LOL
I got as far as the CRUD that Yii gives you, but then got completely overwhelmed from then on.
The Symfony guide was great until I ran out of steam at the point where they too suddenly lapsed into "we're going to assume you know what we mean" eventually. I don't know if I'll ever get the hang of it all :(

I'd rather write all my own stuff so I know what's going on, but I lack the skills to make it pretty. Maybe I should just manually add to what Yii gave me at the CRUD stage, ignoring the rest of the bazillions of classes and interactions they all seem to find easy to learn but I don't.

Their only tutorial approach seems to be "here, sit down and study this example for many frustrating hours, see how you get on" - rather than a step by step bitesize guide where we can take it one manageable chunk at a time, feeling a little bit smarter every few minutes. That's the only way of learning I can cope with, so I'm left high and dry by frameworks :(

#9 mygan

mygan

    Newbie

  • New Members
  • Pip
  • 1 posts

Posted 02 January 2013 - 06:59 AM

My first php framework i worked in was codeigniter, personally i'm not the biggest fan of their documentation, but it has got a lot of good recommendations from others. Nowadays codeigniter seems a bit "old" or "not so classy", and I agree, but i think its a good framework to start with, it got simple functionality, and is not to hard to understand.

And when you feel comfortable with codeigniter, and if you feel like you miss something, or maybe wonder if some things can be done in a better/nicer way, start searching for other frameworks.

My personal favorite is laravel(If you ever have developed in asp.net you will feel at home), and another good framework is fuelPHP.

It's hard to just give you a framework, try them out, read their documentation and then you can reflect on what bests suits you or your project.

best regards
mygan

#10 trq

trq

    Advanced Member

  • Administrators
  • 31,020 posts
  • LocationSydney, Australia.

Posted 02 January 2013 - 02:07 PM

Sorry, but Codeignitor is a bad example of a framework and should be avoided like the plague. It's design is terrible, and as an example, it's not something you should be learning from.

http://thorpesystems.com | http://proemframework.org | http://github.com/trq

SmtpCatcher - A very simple mock sendmail useful for testing PHP mail scripts.
OPM - My Linux package manager.


#11 Sanjib Sinha

Sanjib Sinha

    Advanced Member

  • Members
  • PipPipPip
  • 87 posts
  • LocationKolkata

Posted 03 January 2013 - 12:06 AM

As I used little bit CodeIgniter and even created a Bengali travelogue based on it, I found it little bit clumsy for the beginners. Documentation is not complete either. But there is always a chance to build your own code base on it. Like you avoided active record class and write your own database class etc.

Imagine there is food, shelter and a computer...for every child

12reach: asp.net meets php ::) 


#12 jazzman1

jazzman1

    Advanced Member

  • Gurus
  • 2,660 posts
  • LocationMississauga, Canada

Posted 03 January 2013 - 04:52 PM

Sorry, but Codeignitor is a bad example of a framework and should be avoided like the plague. It's design is terrible, and as an example, it's not something you should be learning from.


Agreed!

#13 cpd

cpd

    ¬_¬

  • Members
  • PipPipPip
  • 892 posts
  • LocationLondon, UK

Posted 04 January 2013 - 04:56 AM

CodeIgniter just takes everything and shoves it into a super object - its extreme globalisation with a raincoat.

I can sympathise with Electro808 with regards to the time it takes to fully learn a framework, the only way to do it is to practice though. That said the time lapse between the OP and his brick wall is 7 days: you can't expect to fully learn a framework in 7 days unless you work at it non-stop. I think you need to spend more time on it.

Edited by CPD, 04 January 2013 - 04:57 AM.

"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it."

"One of my most productive days was throwing away 1000 lines of code."

#14 JayanBee

JayanBee

    Newbie

  • New Members
  • Pip
  • 1 posts

Posted 15 June 2013 - 09:46 PM

Codeigniter has less learning curve and has more support in online compared to other frameworks. Codeigniter has large community support and resources. It is one of the mostly used MVC frameworks.



#15 trq

trq

    Advanced Member

  • Administrators
  • 31,020 posts
  • LocationSydney, Australia.

Posted 15 June 2013 - 11:19 PM

Codeigniter has less learning curve and has more support in online compared to other frameworks. Codeigniter has large community support and resources. It is one of the mostly used MVC frameworks.


The OP said he wanted to study PHP frameworks. Codeignitor is probably one of the worst designed frameworks around. It isn't going to teach the OP anything about good design or best coding practices. I always recommend it (CI) be avoided.

The only reason to study CI would be to learn how to not build a framework.

http://thorpesystems.com | http://proemframework.org | http://github.com/trq

SmtpCatcher - A very simple mock sendmail useful for testing PHP mail scripts.
OPM - My Linux package manager.


#16 sKunKbad

sKunKbad

    Advanced Member

  • Members
  • PipPipPip
  • 1,729 posts
  • LocationTemecula, CA, USA

Posted 16 June 2013 - 05:37 PM

Codeigniter has less learning curve and has more support in online compared to other frameworks. Codeigniter has large community support and resources. It is one of the mostly used MVC frameworks.


Due to my longtime use of CodeIgniter I'd say the argument that is has large community support and resources is actually no longer something that should be said. Over time most of the serious devs have moved on, and "the community" aka the people who still use the forum seem to be mostly noobs that speak English through Google translate. The resouces that used to be in the wiki were at one point moved to github and most were not updated so most of the downloads disappeared. My biggest problem with CodeIgniter isn't so much that it's technically inferior, but that development is dead and if they ever do officially release v3 the license makes it unusable for me and the type of clients I want to do business with. Go with Laravel, Symphony, Yii, Cake, Slim, or anything else. Spending time with CodeIgniter is now just a waste of your time, and time is money....
Brian's Web Design - Temecula

Freedom is only available through death.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com