Bhaktaraz

Web Enthusiastic, Nature Lover

Archives

PHP – Introduction

What is PHP? PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages. PHP is a widely-used, free, and efficient alternative to competitors such as Microsoft’s ASP. Serverside scripting language Used for web development Generate dynamic web pages Requirements What you will need? Computer with PHP installed Text

Laravel Installation – The Fastest Way

Run the following command using composer: composer global require “laravel/installer=~1.1” Put an alias to the freshly installed Laravel installer in your user configuration .bashrc: nano ~/.bashrc And place this inside the file: alias laravel=’~/.composer/vendor/bin/laravel’ And run the following to make sure your bashrc profile is reloaded: source ~/.bashrc Once installed, the simple laravel new command

Caching Data in Symfony2

It is not too easy to enhance the performance of your application. In Symfony2 you could get benefit from caching. The most effective way to improve performance of an application is to cache the full output of a page and then bypass the application entirely on each subsequent request. The cache is the “middle-man” of

Singleton Design Pattern in PHP

In software engineering, the singleton pattern is a design pattern that restricts the instantiation of a class to one object. This is useful when exactly one object is needed to coordinate actions across the system. The following code is a simple implementation: class Database { // A static property to hold the single instance of

Awesome Symfony2 Bundles

A list of awesome Symfony 2 bundles, utilities and resources. User Management * FOSUserBundle – Adds support for a database-backed user system. * HWIOAuthBundle – OAuth client integration. Supports both OAuth1.0a and OAuth2. * JMSSecurityExtraBundle – Enhances the Security Component with several new features. Web Services * FOSRestBundle – Provides various tools to rapidly develop RESTful API’s &