Play was created by software developer Guillaume Bort, while working at Zengularity SA. Although the early releases are no longer available online, there is evidence of Play existing as far back as May 2007. In 2007, pre-release versions of the project were available to download from Zenexity's website.
Motivation
Play is heavily inspired by ASP.NET MVC, Ruby on Rails and Django and is similar to this family of frameworks. Play web applications can be written in Scala or Java, in an environment that may be less Java Enterprise Edition-centric. Play uses no Java EE constraints. This can make Play simpler to develop compared to other Java-centric platforms. Although Play 1.x could also be packaged as WAR files to be distributed to standard Java EE application servers, Play 2.x applications are now designed to be run using the built-in Akka HTTP or Nettyweb servers exclusively.
Major differences from Java frameworks
Stateless: Play 2 is fully RESTful – there is no Java EE session per connection.
Integrated unit testing: JUnit and Selenium support is included in the core.
Asynchronous I/O: due to using Akka HTTP as its web server, Play can service long requests asynchronously rather than tying up HTTP threads doing business logic like Java EE frameworks that don't use the asynchronous support offered by Servlet 3.0.
Modular architecture: like Ruby on Rails and Django, Play comes with the concept of modules.
Native Scala support: Play 2 uses Scala internally but also exposes both a Scala API, and a Java API that is deliberately slightly different to fit in with Java conventions, and Play is completely interoperable with Java.
Testing framework
Play provides integration with test frameworks for unit testing and functional testing for both Scala and Java applications. For Scala, integrations with Scalatest and Specs2 are provided out-of-the-box and, for Java, there is integration with JUnit 4. For both languages, there is also integration with Selenium. SBT is used to run the tests and also to generate reports. It is also possible to use code coverage tools by using sbt plugins such as or .
Usage
, the Play Framework is the most popular Scala project on GitHub. In July 2015, Play was the 3rd most popular Scala library in Github, based on 64,562 Libraries. 21.3% of the top Scala projects used Play as their framework of choice. In December 2010, the first e-book for the Play framework was released. This was subsequently also published in hard copy. In August 2011, a second book was released, covering more complex and modern features. In August 2011, Heroku announced native support for Play applications on its cloud computing platform. This follows module-based support for Play 1.0 on Google App Engine, and documented support on Amazon Web Services. In July 2013, Jelastic published a tutorial showing support for Play 2 on its cloud computing platform.