background preloader

PHP

Facebook Twitter

Vlucas/valitron. Httpful: The REST Friendly PHP HTTP Client Library. Hardened-PHP Project - PHP Security - Suhosin. Top 13 Places to Visit for Laravel Tutorials, Resources & News. Laravel is a web application framework with expressive, elegant syntax.

Top 13 Places to Visit for Laravel Tutorials, Resources & News

We believe development must be an enjoyable, creative experience to be truly fulfilling. Laravel attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as authentication, routing, sessions, and caching. Laravel aims to make the development process a pleasing one for the developer without sacrificing application functionality. Happy developers make the best code. To this end, we’ve attempted to combine the very best of what we have seen in other web frameworks, including frameworks implemented in other languages, such as Ruby on Rails, ASP.NET MVC, and Sinatra. Laravel is accessible, yet powerful, providing powerful tools needed for large, robust applications.

. - Laravel #Philosophy I was gonna try and put it in words myself, but the original Laravel documentation sums up this lovely frameworks philosophy really good. Laravel Group on LinkedIn Laravel on Facebook. Amazon. Phalcon PHP Framework, Tutorial: your first encounter with Phalcon / Part 2. We are going to walk through the process of creating a simple web application – blog.

Phalcon PHP Framework, Tutorial: your first encounter with Phalcon / Part 2

Blog is often used as an introductory example, and there is a very good reason for that: it contains Create, Read, Update and Delete operations (CRUD for short), uses SQL database (NoSQL proponents move along please) as persistent storage - all of which are the basic building blocks of a web app. In summary do not despair about yet another blog tutorial, it’s a great showcase for any framework, and since the concepts involved in a blog are so well known, it’s easy to follow. Step by step I will show you how: Writing any PHP application requires quite a lot software. Luckily it comes prepackaged for popular platforms LAMP (for Linux - Ubuntu), WAMP (for Windows), MAMP (for Mac OS X).

For this tutorial I will be using Apache2, MySQL 5.5 and PHP 5.4 on Windows 7. Once you download Phalcon, open php.ini in your favorite editor. Mac OS X users need to consult respective documentation. Step 8 - Scaffolding ? A Guide to Using Eloquent ORM in Laravel. The Eloquent ORM that comes with Laravel makes it incredibly easy to interact with a database.

A Guide to Using Eloquent ORM in Laravel

Today we’ll look at how we can use Eloquent to interact with our database and do: The basic CRUD functionsSet up and use one-to-one relationshipsSet up and use one-to-many relationshipsSet up and use many-to-many relationships How Does Eloquent Work? The Eloquent ORM provides an ActiveRecord implementation to work with your database. This means that each model you create in your MVC structure corresponds to a table in your database. A Bear model will correspond to a bears table in your database. Bobthecow/mustache.php. Ircmaxell/filterus. Respect/Validation. Devster/ubench. Briannesbitt/Carbon. Fabpot/Goutte. Kriswallsmith/assetic. Underscore.php. Download You can download this project in either zip or tar formats.

Underscore.php

Single Underscore vs. Double Underscore In many PHP installations, _() already exists as an alias to gettext(). The previous declaration of _ in PHP forces Underscore.php to use another name. Object-Oriented and Static Styles Underscore.php works in both object-oriented and static styles. __::map(array(1, 2, 3), function($n) { return $n * 2; }); __(array(1, 2, 3))->map(function($n) { return $n * 2; }); Collections (Arrays or Objects) each __::each(collection, iterator) Iterates over the collection and yield each in turn to the iterator function. Map __::map(collection, iterator) Alias: collect Returns an array of values by mapping each in collection through the iterator. Rmccue/Requests. For PHP - Simplified, lightweight HTTP Request Library. Unirest is a set of lightweight HTTP libraries available in multiple languages.

for PHP - Simplified, lightweight HTTP Request Library

Features Utility methods to call GET, HEAD, POST, PUT, DELETE, CONNECT, OPTIONS, TRACE, PATCH requestsSupports form parameters, file uploads and custom body entitiesSupports gzipSupports Basic, Digest, Negotiate, NTLM Authentication nativelyCustomizable timeoutCustomizable default headers for every request (DRY)Automatic JSON parsing into a native object for JSON responses Requirements Installation Using Composer To install unirest-php with Composer, just add the following to your composer.json file: or by running the following command: composer require mashape/unirest-php This will get you the latest version of the reporter and install it. Composer require mashape/php-test-reporter:@dev-master Composer installs autoloader at . require_once 'vendor/autoload.php'; If you use Symfony2, autoloader has to be detected automatically.

You can see this library on Packagist. Home — Doctrine Project. Propel - The Blazing Fast Open-Source PHP 5.4 ORM. PHP Trends, libraries and frameworks.

Caching

Tutorials & Guides.