Tag: php

16 Apr 2015 · by Skippy Ta
A few months ago, we began the process of rolling out HipHop Virtual Machine (HHVM) to our servers. After hitting a few bumps in the road, we're excited to announce that 100% of our PHP servers are now operate on HHVM! This represents a huge milestone for us, as virtually all requests to Box...
22 Jan 2015 · by Alice Fuller
Last October, I gave my first ever talk at a conference, the Grace Hopper Celebration. When I was initially trying to decide what I wanted to talk about, I gave myself a few criteria: 1) I must be uniquely capable of talking about this, 2) people would learn something, 3) it must be interesting...
16 Jan 2015 · by Adrien Loison
As the world becomes more and more data-oriented, access to the right information is critical. Most of the tools we use to gather data are good at it, but they're not designed to process it. That's why specialized software—like Microsoft Excel or LibreOffice—is so popular. No matter where your data...
18 Nov 2014 · by Joseph Marrama
At Box, we've had our collective eye on the HipHop Virtual Machine (HHVM) for a while now. HHVM is Facebook's open-source PHP runtime, and it differentiates itself from from the standard PHP runtime on a key metric: speed. Whereas the standard PHP runtime is a run-of-the-mill interpreter, HHVM...
10 Apr 2014 · by Benjamin VanEvery
Open source has been a part of the Box technology stack since the company's earliest days. Technologies including Apache, nginx, PHP and their peers have been critical to Box's success and to the technical revolution of web software and platforms as a whole. Today, we are very excited to announce...
30 Jan 2014 · by Joseph Marrama
Introducing PHP Augmented Types, a PHP extension that enforces PHPDoc-style type annotations at runtime. At Box, we depend heavily on PHP. While we have a diverse set of services that utilize a variety of languages, all external requests and most other significant processes end up interacting with...
25 Sep 2013 · by Molly Mackenzie
Once upon a time, in a kingdom far, far away there was a wizard. Each day the king laid out a new scenario in which foes of the realm would test his fortress' defenses. And every day the wizard would come up with new measures to keep the fortress safe. One day a knight appeared at the king's court...
30 Jun 2013 · by David Tong
Introduction First of all, take a look at the XSS Cheat Sheet and the HTML5 Security Cheat Sheet about the many ways a website can be exploited using cross-site scripting (XSS) techniques. Persistent XSS can occur when a website prints or injects text or HTML code into the page. Examples: [php] //...
22 Jan 2013 · by David Duke
Explore other Box tech blog posts here Let’s start with some numbers: 13,500 PHPUnit tests 105 processor-minutes to run them all in sequence (due to many of them being integration tests) 500 new patchsets submitted to code review each week 10 minutes to provide test results on each patchset in...
08 Nov 2012
This is the (short) story of how we built Shmock, a typesafe shorthand mocking library for PHPUnit that we now use extensively at Box. "Ugh." That's often the sentiment I have when I see an excerpt of PHPUnit's built-in mocking framework in action. Anyone who's seen it used knows what I'm talking...
08 Aug 2012 · by Benjamin VanEvery
A few months ago I blogged about Diesel, a dependency injection framework for PHP. Since then, it's gotten a lot of use in our internal PHP code as well as our open source project, Bart. It's also gotten a good deal of feedback from the rest of the team and been the subject of many a debate. The...
15 Feb 2012 · by Benjamin VanEvery
Cross-posted from my blog at http://asheepapart.blogspot.com/. PHPUnit made unit testing PHP an actual pleasant experience, but there's still something missing when it comes to generically injecting stubs and mock behavior into your classes when your classes extend beyond simple relationships...
20 Jan 2012 · by Benjamin VanEvery
Although rife with a slew of inefficiencies and idiosyncrasies, PHP does offer the scripter a powerful set of possibilities for the energetic and inclined. One of these is its autoload concept – it isn’t unique to PHP, but PHP offers a certain degree of simplicity to the scripter who is willing to...
27 Oct 2011 · by Benjamin VanEvery
Although rife with a slew of inefficiencies and idiosyncrasies, PHP does offer the scripter a powerful set of possibilities for the energetic and inclined. One of these is its autoload concept - it isn’t unique to PHP, but PHP offers a certain degree of simplicity to the scripter who is willing to...