Skip to content

Instantly share code, notes, and snippets.

View awesome-php.md

Awesome PHP

A list of amazingly awesome PHP libraries, resources and shiny things.

Composer

@stiggg
stiggg / gist:28d4d5554a59ffddfb54
Last active Oct 20, 2015
Nginx TLS configuration
View gist:28d4d5554a59ffddfb54
server {
listen 80;
server_name www.example.com example.com;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl default_server;
server_name www.example.com example.com;
View SplClassLoader.php
<?php
/**
* SplClassLoader implementation that implements the technical interoperability
* standards for PHP 5.3 namespaces and class names.
*
* http://groups.google.com/group/php-standards/web/final-proposal
*
* // Example which loads classes for the Doctrine Common package in the
* // Doctrine\Common namespace.