A 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 list of amazingly awesome PHP libraries, resources and shiny things.
/** | |
* Lightweight CSS Loader | |
* | |
* Even prepends the correct theme URL location to allow easy script loading | |
* | |
* @param {string} name URL to CSS file | |
* @param {Function} cb Callback function | |
* @return {null} | |
*/ | |
function loadCss(name, cb) { |
/** | |
* Lightwright JS Loader | |
* | |
* @author Christopher Imrie | |
* | |
* @param {String} name URL to JS file | |
* @param {Function} cb Callback function | |
* @return {null} | |
*/ | |
function loadScript(/** string */ name, /** Function*/ cb) { |
<?php | |
//Instead of using ee_debug_toolbar_modify_output as the primary mechanism of adding content to the toolbar, | |
//we add an additional extension hook for adding content | |
class Eedt_memory_history_ext { | |
/** | |
* Method called for adding toolbar panels | |
* @param $view Eedt_view |
<?php | |
/** | |
* 2-letter ISO Country Code to Country Name conversion | |
* | |
* Usage: | |
* | |
* $country_name = Country::code("GB"); | |
* // "United Kingdom" | |
* |
<?php | |
/** | |
* 3-letter IATA City Code to CityName conversion | |
* | |
* Usage: | |
* | |
* $city_name = City::code("LON"); | |
* // "London" | |
* |
<?php | |
/** | |
* 3-letter IATA Airport Code to Airport Name conversion | |
* | |
* Data Sourced from http://www.photius.com/wfb2001/airport_codes_alpha.html | |
* | |
* Usage: | |
* | |
* $airport_name = Airport::code("ACA"); |
/** | |
* Simple Placeholder Fallback | |
* | |
* A simpler and more robust method for adding fallback input placeholder support for | |
* browsers that dont support the attribute. No value spoofing, hidden input creation | |
* or other crazy methods. Simply appends the placeholder text after the input as help | |
* text. | |
* | |
* Simple & works with even the craziest validation and form submission logic, which is where | |
* the other techniques struggle. |
<?php | |
/** | |
* Modifying the final CP Output | |
* | |
* This extension demonstrates how you can access and modify the final ExpressionEngine | |
* CP output. It is not a hack, but it is a new technique that to my knowledge has not | |
* been used before in an EE addon. | |
* | |
* This has not been road tested and its side effects are unknown, so use this at your own risk. |
################################################################################# | |
# | |
# - ExpressionEngine index.php ModRewrite Removal - | |
# compatible with Google Analytics Tracking | |
# | |
################################################################################## | |
RewriteEngine on |