A curated list of amazingly awesome PHP libraries, resources and shiny things.
- Composer/Packagist - A package and dependency manager.
- Composer Installers - A multi framework Composer library installer.
A curated list of amazingly awesome PHP libraries, resources and shiny things.
A curated list of amazingly awesome PHP libraries, resources and shiny things.
| <?php | |
| /** | |
| * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved. | |
| * @license GNU General Public License version 2 or later; see LICENSE | |
| */ | |
| namespace Joomla\Data; | |
| use Psr\Cache\CacheInterface; |
| # PHP # | |
| ###下載 原始碼 | |
| $ wget http://tw2.php.net/distributions/php-5.3.8.tar.gz | |
| $ wget http://xmlsoft.org/sources/libxml2-2.7.7.tar.gz | |
| $ wget http://zlib.net/zlib-1.2.5.tar.gz | |
| ###解壓縮 | |
| joomla | |
| ``` | |
| index | |
| | | |
| v | |
| routing | |
| | | |
| v | |
| controller <---- models <-- table & form | |
| | | |
The Google Cloud Storage package is designed to be a straightforward interface for working with Google Cloud Storage. It is based on version 2.0 of the Google Cloud Storage XML API. You can find documentation on the API at https://developers.google.com/storage/docs/xml-api-overview.
Google Cloud Storage is built upon the Http package which provides an easy way to consume URLs and web services in a transport independent way.
| var parser = document.createElement('a'); | |
| parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
| parser.protocol; // => "http:" | |
| parser.hostname; // => "example.com" | |
| parser.port; // => "3000" | |
| parser.pathname; // => "/pathname/" | |
| parser.search; // => "?search=test" | |
| parser.hash; // => "#hash" | |
| parser.host; // => "example.com:3000" |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| // | |
| // _oo0oo_ | |
| // o8888888o | |
| // 88" . "88 | |
| // (| -_- |) | |
| // 0\ = /0 | |
| // ___/`---'\___ | |
| // .' \\| |// '. | |
| // / \\||| : |||// \ | |
| // / _||||| -:- |||||- \ |
| <?php | |
| /** | |
| * Benchmark: Reflection Performance | |
| * | |
| * Conclusion: there is no performance-gain from caching reflection-objects. | |
| */ | |
| define('NUM_TESTS', 10); |