3

New to PHP, need recommendation to get start :)
And basic framework as well

Comments
  • 1
    Learn something else, JavaScript, fortran but god please not php
  • 1
    @philcr why not php ??
  • 1
    Because they hate it just because it's cool :p
  • 0
    @philcr why? I think php is easy to install and write
  • 0
    @ScribeOfGoD i get lost now 😒
  • 0
  • 1
    Have to say that I like php a lot, don't really know why people hate it so much. I love it. It's quite simple imo.
  • 5
    I ask for some recommendations, but it turned to language war 😂
  • 3
    @vannrith Yeah, as soon as someone mentions php here, some go crazy.
  • 0
    @olback looking like lots of people hate php.. 😒
  • 6
    @vannrith Haters gonna hate, potatoes gonna potate.
  • 1
    Learn the basics before jumping to a framework, talk about jumping the gun.
  • 4
    Are you familiar with programming already? If not I would suggest learning the language first without any framework.

    Frameworks:
    Convenience: laravel,
    Performance: phalcon,
    PSR adherence: hawkbit.

    There is also zend, Zend Expressive is pretty interesting tbh.
  • 1
    @lotd I love Phalcon but their docs could be better in my opinion
  • 4
    So first of all to explain a little of the hate against PHP.
    PHP has a lot of old dept. The language was just a scripting language. You are still able to write "Spagetthi-Code", wich means basically no structure. You can have functions in a globale namespace like javascript, but at the same time you can work in a fully object oriented way, with namespaces like java. Since php 7 you can work with static types and kind of compiled bytecode. A lot of tutorial features insecure mysql or mysqli examples. You shojld use PDO.

    Now for your question about frameworks: I personally use Symfony (but have worked with Zend and Yii as well). For DB interactions, so far I used Doctrine as it's nicely integrated with Symfony. As frontend engine, I use twig, not only for Symfony, but also for things like Craft CMS.

    Stay away from wordpress. Try something like http://sulu.io instead.

    If you have any questions about PHP or different frameworks, just let me know.
  • 1
    For MVC I used to use CakePHP which is kinda nice.
  • 0
    @lotd yeah, i knew some basic php since i am a front end developer. Thanks for information
  • 0
    @pascalwacker im a wordpress user as well. But my goal is to actually build s.th, not using like that. I heard a lot about codeigniter is easy to install. Anyway thanks for you info, i just want to know how to learn it correctly, practice correctly and not go like blind. Best recommendations so far, i should use PDO, and learn ot from scratch before starting framework. Anyway, what is the best resource?
  • 0
    @QCat how it compares to codeigniter?
  • 0
    @vannrith higher footprint, enforce standard names an code practices, has a command line tool for generating scaffold. The total reverse of CI
  • 0
    @QCat the biggest worry of mine when i choose a framework that evolve with command line, is finding hosting to host that app.. im on budget, m not sure if it run on shared cpanel hosting.
    Can u give more info abt this?
  • 0
    @vannrith the command line tool is pure php, not mandatory, and serves only to generate models, views controllers and routes. Cake is made for being used in cheap hosting and forcing high maintenability
  • 0
    You can alsways work on a local VM, if it's for "training". Go checkout Vagrant (and if you're lazy like me https://puphpet.com
  • 0
    @QCat thank you, definitely check that out
  • 0
    @pascalwacker i see, but i prefer set it up myself. But when i buy a cheap hosting, nothing i can do 😂
  • 1
    @vannrith you could checkout docker and docker-compose. They are great for this ;)
  • 0
    @ScribeOfGoD @vannrith it's arcane and although widely used I don't like it. Personal preference
  • 0
    @philcr thanks man
Add Comment