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.
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteRule ^(.*)$ public/$1 [L] | |
</IfModule> |
<?php | |
/** | |
* | |
* Make the string of a defined length | |
* | |
* @param string $string | |
* @param integer $max_length | |
* @param boolean $trunc_at_space | |
* @param string $replacement |
<?php | |
/** | |
* | |
* Genrate Slugs from Title or any given string | |
* | |
* @param string $str | |
* @return Slug | |
* | |
**/ |
<?php | |
/** | |
* | |
* Creates nicely formated timestamps | |
* | |
* @param timestamp $date | |
* @return string | |
*/ | |
public static function get_x_time_ago($date) |
### Laravel ### | |
app/config/dev/ | |
bootstrap/compiled.php | |
.env.*.php | |
.env.php | |
### Composer ### | |
composer.phar | |
vendor/ |
A curated list of amazingly awesome PHP libraries, resources and shiny things.
Other people's projects:
My projects (tutorials are on my blog at http://maxoffsky.com):
<?php | |
/* | |
|-------------------------------------------------------------------------- | |
| Application Routes | |
|-------------------------------------------------------------------------- | |
| | |
| Here is where you can register all of the routes for an application. | |
| It's a breeze. Simply tell Laravel the URIs it should respond to | |
| and give it the controller to call when that URI is requested. |
<!doctype html> | |
<title>Site Maintenance</title> | |
<style> | |
body { text-align: center; padding: 150px; } | |
h1 { font-size: 50px; } | |
body { font: 20px Helvetica, sans-serif; color: #333; } | |
article { display: block; text-align: left; width: 650px; margin: 0 auto; } | |
a { color: #dc8100; text-decoration: none; } | |
a:hover { color: #333; text-decoration: none; } | |
</style> |
server { | |
listen 80; | |
listen [::]:80; | |
server_name site.com; | |
root /home/forge/site.com; | |
# FORGE SSL (DO NOT REMOVE!) | |
# ssl on; | |
# ssl_certificate; | |
# ssl_certificate_key; |