PHP Directory


  • Why MVC doesn’t fit the web

    [MVC is] a particular way to break up the responsibilities of parts of a graphical user interface application. One of the prototypical examples is a CAD application: models are the objects being drawn, in the abstract: models of mechanical parts, architectural elevations, whatever the subject of the particular application and use is. The “Views” are windows, rendering a particular view of that object. There might be several views of a three-dimensional part from different angles while the user is working. What’s left is the controller, which is a central place to collect actions the user is performing: key input, the mouse clicks, commands entered.

    The responsibility goes something like “controller updates model, model signals that it’s been updated, view re-renders”.

    This leaves the model relatively unencumbered by the design of whatever system it’s being displayed on, and lets the part of the software revolving around the concepts the model involves stay relatively pure in that domain. Measurements of parts in millimeters, not pixels; cylinders and cogs, rather than lines and z-buffers for display.

    The View stays unidirectional: it gets the signal to update, it reads the state from the model and displays the updated view.

    The controller even is pretty disciplined and takes input and makes it into definite commands and updates to the models.

    Now if you’re wondering how this fits into a web server, you’re probably wondering the same thing I wondered for a long time. The pattern doesn’t fit.

    Read the rest at Why MVC doesn’t fit the web.

  • Refactoring Done Right

    November 2017 - US
    Presented By

    Brandon Savage
    November 16, 2017
    20:00 CST

    The post Refactoring Done Right appeared first on Nomad PHP.

  • API Tips From the Frontline

    November 2017 - EU
    Presented By

    Anna Filina
    November 16, 2017
    20:00 CET

    The post API Tips From the Frontline appeared first on Nomad PHP.

  • How to Master Your API Workflow with Postman

  • PHP 7.2.0 Beta 3 Released

    The PHP development team announces the immediate availability of PHP 7.2.0 Beta 3. This release is the third and final beta for 7.2.0. All users of PHP are encouraged to test this version carefully, and report any bugs and incompatibilities in the bug tracking system. THIS IS A DEVELOPMENT PREVIEW - DO NOT USE IT IN PRODUCTION! For more information on the new features and other changes, you can read the NEWS file, or the UPGRADING file for a complete list of upgrading notes. These files can also be found in the release archive. For source downloads of PHP 7.2.0 Beta 3 please visit the download page, Windows sources and binaries can be found at The first Relase Candidate will be released on the 31th of August. You can also read the full list of planned releases on our wiki. Thank you for helping us make PHP better.
  • Preparing a Leanpub book for print-on-demand

  • The “Micro” Framework As “User Interface” Framework

    (The following is more exploratory than prescriptive. My thoughts on this topic are incomplete and in-progress. Please try to treat it accordingly.) tl;dr: “Micro” frameworks are better described as “user interface” frameworks; perhaps there should be corollary “infrastructure” frameworks; consider using two frameworks and/or two containers, one for the user interface and a separate one […]
  • PHPBot – Can a PHP Bot Help You Look up Documentation Faster?

    I came across PHPBot the other day (not to be confused with Botman or Fondbot) - a "chatbot" which helps you look up PHP manual entries and generates example code for them.

    If you follow me on Twitter, you know I don't believe in chatbots being chatbots - as someone who's built some for both commercial purposes and personal ones, and as someone who was around in the age of IRC auto-responding scripts, I see chatbots as a little more than a marketing fad designed to impress today's Snapchat generation. However, every now and then one will appear that's actually useful. Could this be the one? Let's take a look.

    Bot welcoming image


    The idea is that you use the text input on the page to enter a PHP related term (like "ksort") and the application will reply with an explanation and some example code, like so:

    PHPBot's reply to <code/>ksort input

    Different queries will produce different responses. So, if you ask it for echo:

    PHPBot's reply to <code/>echo

    Continue reading %PHPBot – Can a PHP Bot Help You Look up Documentation Faster?%

  • Why Magic Quotes are gone in PHP 7

  • A Practical Introduction to Snapshot Testing

    Speaker: Freek Van der Herten @freekmurze The basic idea of snapshot testing is that you compare the output of your code against a file that’s written on disk. That file is called a snapshot. If the output of your test matches up with the contents of that snapshot, it succeeds, otherwise, it fails. It’s a …

    The post A Practical Introduction to Snapshot Testing appeared first on Nomad PHP.

:: Our Favorites

Featured Sites Using PHP

>Atlanta Real Estate