PHP Directory


  • WordPress security woes and plan of attack

    I’ve been involved in a few wordpress security snafus over the last 3-4 months – almost none of which were my doing directly, but I’ve still gotten involved anyway.  I’ve been disappointed, but not surprised, that even some commercial security and scanning services seem to miss rather obvious issues, and this sours me even more on the […]
  • The State of Accessibility in PHP Tools

    Usually when I tell people that I’m blind, many people ask me how I can use the computer. “Is someone reading you my messages?” I remember someone asking. Many people imagine that I have this super-nifty speech recognition software that I can just talk to, and it would do anything, even write code. Imagine dictating code to a speech recognition system!

    I gave an answer on Quora, to someone who had asked How does a visually impaired computer programmer do programming? I recommend you go through that answer to have a better context on what I’ll be talking about in this post. As is my habit, though, I’ll still point out the important bits here, so if you don’t feel like clicking on that link, don’t worry!

    Before I get to the comparison, allow me to give you a few facts so that we are all on the same page. Feel free to skip forward if you already know these points, but I’ve found that a lot of people don’t, and I’m going to start with those.

    How do the blind use computers?

    They use screen readers. As the name implies, these applications read the screen through synthesized speech, and they also have an optional Braille output through a Braille display. Both of these options (speech and Braille) have to go through the screen reader, though, so if the screen reader can’t see the content, it can’t display it through either of these outputs.

    How do you type? How do you use the mouse?

    The answer to both these questions is, “through the keyboard”. Our screen readers have very specialized keystrokes that allow us to move the mouse, click, hover on an item, and jump around in web documents (by links, h1-6 headings, lists and list items, form fields and many more).

    Continue reading %The State of Accessibility in PHP Tools%

  • Kitchener - FrontEdge - Browser Performance Slides

    My slides from the FrontEdge user group talk on Browser Performance are available here. Thanks to everyone who attended and I especially enjoyed the many engaging questions ;-)
  • An Exceptional Change in PHP 7.0

    With PHP 7 errors and exceptions are undergoing major changes. For the first time, the PHP engine will start to emit exceptions instead of standard PHP errors for (previously) fatal, and catchable fatal errors. This means that we can now handle them much more gracefully with try... catch. But with this change, comes a whole…
  • Review: MongoDB and PHP

    MongoDB and PHP
    Jose Gomez
    PHP books
    Steve Francia
    MongoDB and PHP is a great book that obviously describes how to use MongoDB with PHP. The target readers of this book are PHP programmers. It introduces MongoDB as document based database, how to install MongoDB drivers, perform simple queries and aggregation like MapReduce. This book also enumerates mappers, tools and frameworks.

    So it is well recommended to all those that want or need to learn about how to use MongoDB with PHP.
  • Using Selenium with PHPUnit

    Testing is a really wide subject, whether it be unit testing, functional testing, acceptance testing, etc. In this article, we’re going to see how you can do acceptance testing using Selenium. I will use a practical example to illustrate a real use case. I will assume that you already know how to do unit testing using PHPUnit, or that you at least have a grasp of what it’s all about. Let’s get started.

    Image of some checkboxes being checked

    What Is Acceptance Testing?

    Acceptance testing is the process of telling user stories through tests, and I love this quote to describe it:

    A formal test conducted to determine whether or not a system satisfies its acceptance criteria and to enable the customer to determine whether or not to accept the system.

    What Is Selenium?

    Selenium is a tool to automate user interface testing. It helps with testing your application against the browser. The process could be described like so:

    • Go to the page
    • Assert the page contains a list of 20 videos.
    • Click number two on the pagination.
    • Assert the page contains a list of 20 videos.
    • Quit the browser.

    You may be wondering: “How does it manipulate the web page using the described tests?”

    The answer is “it depends”. If you’re using Selenium RC (previously named Selenium 1), it will inject auto generated JavaScript code to the page to perform the desired actions. Selenium RC is deprecated and is only supported in maintenance mode; you should be using Selenium WebDriver.

    When using Selenium WebDriver (Selenium 2), the tests are translated into commands and passed to the Selenium server (more about that in a moment), then passed to the browser using the web browser native API.

    Continue reading %Using Selenium with PHPUnit%

  • Behind the scenes at Coolblue

  • What You Should Do Before Pushing PHP Code to your Production GIT Repository

    By Suresh Kumar
    Every time you commit new code to a Git repository, there is a great chance that the code has problems that were not detected with your usual batch of tests.

    Read this article to learn how to integrate PHP Code Sniffer with your project Git commit process to inspect your PHP code automatically and prevent that code with problems is committed.
  • Composer cache on Travis

    Ever since the Test lowest, current, and highest possible on Travis post I wanted to dive into caching composers cache and vendor on Travis. My experiments started the day after that post.

    Docker Composer Packagist Travis Hybrid

  • On PSR7 and HTTP Headers

:: Our Favorites

Featured Sites Using PHP

>Atlanta Real Estate