Skip to content

Instantly share code, notes, and snippets.

Top 100 PHP libraries from packagist

  1. twig/twig - Twig, the flexible, fast, and secure template language for PHP - 279287
  2. symfony/symfony - The Symfony PHP framework - 230662
  3. doctrine/common - Common Library for Doctrine projects - 230352
  4. doctrine/dbal - Database Abstraction Layer - 217097
  5. monolog/monolog - Logging for PHP 5.3 - 197983
  6. doctrine/orm - Object-Relational-Mapper for PHP - 196816
  7. swiftmailer/swiftmailer - Swiftmailer, free feature-rich PHP mailer - 172086
  8. kriswallsmith/assetic - Asset Management for PHP - 165852
  9. [sensio/distribution-bundle](https://packagist.org/packages/sen
@greystate
greystate / querystring.coffee
Created October 10, 2011 09:50
CoffeeScript QueryString class
# Provide easy access to QueryString data
class QueryString
constructor: (@queryString) ->
@queryString or= window.document.location.search?.substr 1
@variables = @queryString.split '&'
@pairs = ([key, value] = pair.split '=' for pair in @variables)
get: (name) ->
for [key, value] in @pairs