Java Enterprise Dev Making Jump to PHP

Hello PHP Devs,

First, I have been using PHP for side projects on and off for the past 10 years, but never used any heavy frameworks or developed with it professionally. My professional career has mostly involved building enterprise web applications in Java. So I am familiar with all of the scalability, and security issues that go along with web development.

I am looking for some resources or documentation on the frameworks used in Vanilla 2.1.1 (moving to 2.1.8 soon I suppose ;) ) as well as other php best practices. Specifically dependency injection libs and best practices for modularizing PHP projects.

I have been reading through http://vanillaforums.org/docs/toc#developer-documentation but the more I can understand about the whole application the better. Just found this http://vanillawiki.homebrewforums.net/index.php/Main_Page, but haven't had the time to really dig through the content.

Any suggestions are welcome and would be very much appreciated! Thanks,

David

Comments

  • x00x00 MVP
    edited March 2015

    Vanilla is a nice portable MVC framework, the actual framework is called garden, but vanilla and garden are used interchangeably.

    Symfony web framework relies heavily on dependency injection.

  • Thanks x00! I appreciate the feedback.

  • BleistivtBleistivt Moderator

    Some things come to my mind when picturing how vanilla would look in the java world:

    You probably already know it, but PHPs "array" is pretty much everything you would use a collection for in Java.

    Vanilla is mostly object oriented, but there are some parts that are not:

    The overall bootstrap process is procedural:
    https://github.com/vanilla/vanilla/blob/master/bootstrap.php

    There are global functions, that are being included, see: /library/core/functions.*
    In a Java app these would probably be part of a utility class.

    When going into plugin development, this page about vanillas event system should be the most helpful:
    http://docs.vanillaforums.com/developers/plugins/

  • Thanks, that is really helpful!

Sign In or Register to comment.