JaggyGauran

Freelance developer, and designer

My Envoy Deployment Script

I am a huge fan of Laravel Forge and Envoyer for my server provisioning and deployment needs. Check them out if you haven’t already, they save me a lot of time whenever I’m handling large scale projects.

There are cases though that we all end up writing our own build and deployment scripts, or for some, even doing it manually.

Read this article

Kraken: File version handler

Kraken is a release update tool which bumps up the file versions of your modified git files. Installation Install via composer. composer global require jaggy/kraken Usage Once you have it up and running $ kraken release patch Bumping src/Jaggy/Kraken/Kraken.php: 1.1.9 -> 1.1.10 $ kraken release minor Bumping src/Jaggy/Kraken/Kraken.php: 1.1.10 -> 1.2.0 $ kraken release major Bumping src/Jaggy/Kraken/Kraken.php: 1.2.0 -> 2.0.0 If you…

Read this article

PHP SoapClient with NTLM

For quite some time now, I've been working a lot of web service requests, specifically, SOAP requests. Which is kinda painful for me because I have major annoyances with request and response naming conventions of most of the services. Uh-oh There are some issues that you will encounter when trying to send…

Read this article

CakePHP Factory Plug-in

Now I've grown to know and love unit testing while I was still doing some Rails and I loved the concept of factories over fixtures. Jumping into CakePHP, the testing felt a bit alien to me so I made a Factory plug-in to suit my Model testing needs. Check it out…

Read this article

RESTful CakePHP

Ever since I've tried Ruby on Rails and Laravel, I fell in love with the concept of REST and named routes. Now, CakePHP2 currently does not support named routes and RESTful controllers are a tad bit tedious to setup. Now, I made a CakePHP Rest Plug-in to give the ease of…

Read this article

Using Blade in Wordpress

I've been working with wordpress for a while and got uncomfortable with the clutter in code. With all the get_header() and get_footer() and, cutting off the start of your container within the header and closing it in the footer, the obsessive-compulsive side of me really couldn't take it. To make it…

Read this article

CakePHP Polymorphic Associations

So I recently just found out about polymorphic relationships and let me tell you, it's amazing. It saves a lot of fields and just feels right. Anyways, implementing it in CakePHP 2 is quite easy. Let's say we have an Image which belongs to Employee and Client, here's how the structure would…

Read this article

Hello Laravel

Laravel 4 <3 Okay, I've started working with Laravel for the past few days, and I must say I am definitely loving it! It was an easy transition from the other frameworks I've worked with and surely this will be my main framework for the mean time.

Read this article

My CakePHP Testing Workflow

I've been a fan of Test Driven Development when it comes to Ruby on Rails. Coming back to CakePHP, I've really had a hard time adjusting my work flow in terms of factories and testing and everything else. So, after researching a limited amount of resources for practices, conventions for implementing…

Read this article