background preloader

Create a REST API with PHP « Gen X Design

Create a REST API with PHP « Gen X Design
Your apps never had it so good One of the latest (sort of) crazes sweeping the net is APIs, more specifically those that leverage REST. It’s really no surprise either, as consuming REST APIs is so incredibly easy… in any language. It’s also incredibly easy to create them as you essentially use nothing more than an HTTP spec that has existed for ages. Seriously, if you’ve never used REST, but you’ve ever had to work with (or worse, create) a SOAP API, or simply opened a WSDL and had your head explode, boy do I have good news for you! So, What on Earth is REST? Before we get into writing some code, I want to make sure everyone’s got a good understanding of what REST is and how its great for APIs. Requests All APIs need to accept requests. The other piece of a request is what it’s actually meant to do, such as load, save, etc. Responses So, REST handles requests very easily, but it also makes generating responses easy. Getting Started with REST and PHP So, let’s dig in! Sending the Response

65 Beautiful Fonts You Can Download For Free - StumbleUpon - Pentadactyl Freebie 65 Beautiful Fonts You Can Download For Free by Alex on Aug 9, 2012 • 9:43 am 17 Comments There are so many free fonts all around the web these days and sometimes it makes me think is their any really point purchasing fonts. I’ve decide to collect 65 fonts which are suitable for web, print, etc just overall high fonts which can be used in design projects. If you like fonts, you’ll love our favorite premium font, check it out here on Envato Market. Neuton Font Family Download Font → Intro free font Download Font → Bemio Download Font → Exo Font Family Download Font → Rex Free Font Download Font → Metropolis 1920 Download Font → Free Typeface NeoDeco Download Font → Hagin Free Font Download Font → Mosaic Leaf Download Font → Cubano Download Font → Cubic Sans Download Font → Banana Brick Download Font → Sofia Download Font → Sansita One Download Font → Villa Didot Download Font → Accent Download Font → Lavanderia Download Font → Blanch Download Font → Lorena Download Font → Age Download Font → Arvo Download Font → Banda Code

How to Add an API to your Web Service Introduction APIs are a great way to extend your application, build a community, excite your users and get in on the Mashup Mania spreading across the web. While there’s plenty out there wanting in on the action, there’s a lot of questions about how to actually go about creating an API for a web application. Like everything else technical on the web these days, there are tons of complicated and scary documents out there ready to intimidate the unprepared. In an attempt to get everyone on the bus in one piece, we’ve tried to filter through the hard stuff and give an easy to understand starting point for anyone on a quest to API’ify their web service. An API, or Application Programming Interface, is a set of functions that one computer program makes available to other programs (or developers) so they can talk to it directly without having to give it access to the source code. The Basics There are two types of heavily used APIs for web services: SOAP and REST. Making The Request Holy Grail

"Buddycons" - Vector Social Media Icons - StumbleUpon - Pentadactyl Today we’re giving away a wonderful set of social media icons designed exclusively for WDD by Orman Clark, a web designer from the UK. The icon set is called “Buddycons” and includes 126 vector social media icons. Included in the set are PNG versions of all 126 icons in both circular and rounded variations as well as a vector source file for easy resizing. The icons are free to use for personal and commercial usage, however, redistribution is not allowed, so if you’d like to share these icons with your friends, please direct them to this page so that they can download their own copy from here. See a full preview of the icons and the download link after the jump. Orman Clark is a web designer based in the UK. Download more free vectors at 1001FreeDownloads.com Please enter your email address below and click the download button. Please enter your email address below and click the download button. WDD staff are proud to be able to bring you this daily blog about web design and development.

Short List of RESTful API Frameworks for PHP Having a web API is an essential part of doing business online today. We wanted to help get you started. So we took some time to pull together a list of the RESTful or RESTish (however you choose to view it) API frameworks, that can help you deploy your API faster. Today we are going to take a look at seven RESTful API frameworks for PHP: Dave - DAVE is a minimalist, multi-node, transactional API framework written in PHP. which contains an end-to-end API test suite for TDD, a Task model, an Active Database Model, and a stand-alone development server to get you started. Epiphany – A micro PHP framework that’s fast, easy, clean and RESTful. FRAPI - FRAPI is a high-level API framework that powers web apps, mobiles services and legacy systems, enabling a focus on business logic and not the presentation layer. Recess - Recess is a RESTful PHP framework that can be used by both beginner and seasoned developers. Zend Framework – Zend_Rest_Server is intended as a fully-featured REST server.

Font Generator - Make Your Own Handwriting Font With Your Fonts - Pentadactyl BRob On Tech » Blog Archive » Open Source Testing Tool Smackdown for REST Web Services Recently I’ve been working on a REST API for reporting workflow status information in Alfresco. After getting some of the functionality nailed down, it really bothered me that I wasn’t able to use Test Driven Development (TDD) in the process. So I went looking, and I found quite a few open source tools out there in the wild that made good prospects for acceptance testing these REST APIs that I was working on. It was time for a SMACKDOWN! OOOOOOOH YEAAAAAAAH! Contender #1 – Selenium I heard of Selenium in the past and have wanted to tinker with it for a long time, so I tried this one out first. That was very cool, but I needed to test result sets with dynamic data, so I had to take a look at Selenium-RC, which has APIs that enable the use of your favorite programming language: Java, C#, Perl, PHP, Python, or Ruby. Oh, one other note. Contender #2 – HTMLUnit This is basically just a Java API that makes it easy to extract information from web pages programatically. Contender #3 – JWebTest

HTML5 presentation - StumbleUpon - Pentadactyl In March 1936, an unusual confluence of forces occurred in Santa Clara County. A long cold winter delayed the blossoming of the millions of cherry, apricot, peach, and prune plum trees covering hundreds of square miles of the Valley floor. Then, unlike many years, the rains that followed were light and too early to knock the blossoms from their branches. Instead, by the billions, they all burst open at once. Seemingly overnight, the ocean of green that was the Valley turned into a low, soft, dizzyingly perfumed cloud of pink and white. Then came the wind. It roared off the Pacific Ocean, through the nearly uninhabited passes of the Santa Cruz Mountains and then, flattening out, poured down into the great alluvial plains of the Valley. This perfumed blizzard hit Stevens Creek Boulevard, a two-lane road with a streetcar line down its center, that was the main road in the West Valley.

Creating a PHP REST API Using the Zend Framework « Chris Danielson's Blog I don’t know about you, but I spent hours pouring over the Zend documentation and searching the Internet for some sort of understanding or example regarding how to do REST the correct way in PHP. I found a handful of one-offs, where everyone was writing their own core REST engine from scratch. I figure why write all the code to handle this, if you already have the Zend Framework in your code base. I believe that the ideal solution will effectively use the the Zend_Rest_Controller and ContextSwitch objects as well as offering JSON and XML formatting options. My goal here is simple. I want to give you the building blocks to aid in writing an easily maintainable REST API in PHP using the Zend Framework. This code example will support REST data in the format of XML and JSON . Prerequisites: PHP version > 5 Zend Framework 1.9.2 (at the minimum) The generic download page can found here . Download ZendRestExample Source . Basic Directory Structure: URLS used in this example:

20 Extremely Useful CSS Tools - StumbleUpon - Pentadactyl Most of the time writing website’s CSS is enjoyable and fun job. However some of the tasks aren’t always fun. CSS tools are here to help with those not so fun tasks, and make developers job a bit easier. We rounded up a collection of extremely useful CSS tools. Variable Grid System The variable grid system is a quick way to generate an underlying CSS grid for your site. The 1Kb CSS Grid It is a very small-sized and lightweight CSS framework supporting grid system, style reset, basic typography and form styles. Grid Designer This tool enables you to create a grid by specifying the number of columns and the widths of the columns, gutters and margins. CSS Lint CSS Lint is a tool to help point out problems with your CSS code. Primer CSS Just paste some HTML in the box and Primer will pull all classes and IDs to get you started with your stylesheet. PrefixMyCSS PrefixMyCSS helps you save time by letting you write your properties one way. Modernizr Layer Styles CSS3 Patterns Gallery Spritebox Typetester

CSS Ribbon Menu - StumbleUpon - Pentadactyl Use CSS3 transitions and CSS2 pseudo-elements to create an animated navigation ribbon with minimal markup. February 1, 2012 Browser Support IE8 and IE9 do not support CSS3 transitions, so the hover state will not be animated for those browsers. Otherwise it looks and functions the same, which I think is a very acceptable fallback. The HTML <div class='ribbon'><a href='#'><span>Home</span></a><a href='#'><span>About</span></a><a href='#'><span>Services</span></a><a href='#'><span>Contact</span></a></div> The forked ends and folds are created with CSS pseudo-elements, allowing for very clean HTML. The CSS Forked ends Here the :before and :after pseudo-elements are used to create empty elements with a thick border. Links The links and the forked ends are all floated left so that they fit flush against each other. Animated Folds A nifty trick for vertically centering text inside of an element is to set the line-height to be the desired height of the element, and remove any vertical padding. Hey,

Stripe Generator - ajax diagonal stripes background designer - StumbleUpon - Pentadactyl Color Theory, Color Wheel and Combining Colors, Colors on the Web - StumbleUpon - Pentadactyl Build seven good object-oriented habits in PHP - StumbleUpon - Pentadactyl Make your PHP applications better with object orientation Nathan GoodPublished on October 28, 2008 In the early days of PHP programming, PHP code was limited to being procedural in nature. Procedural code is characterized by the use of procedures for the building blocks of the application. Procedures offer a certain level of reuse by allowing procedures to be called by other procedures. However, without object-oriented language constructs, a programmer can still introduce OO characteristics into PHP code. While purely procedural designs without much modularity run just fine, the advantages of OO design show up in the maintenance. Modularity— one of the key characteristics of good OO design — helps with this maintenance. While there are more than seven habits to building OO software overall, the seven habits here are what you need to make your code fit basic OO design criteria. The seven good PHP OO habits are: Be modest Bad habit: Expose public fields Listing 1. Listing 2. Listing 3.

Related: