// One More

function blog() {

/**
* @author     Mikey
* @date       2011-09-14 09:18:42
* @shorturl   http://kwn.me/1oq0
**/

$this->Post->read('CakePHP - ShortenComponent - A Component for URL Shortening');

Well, I've made my first CakePHP (1.3+) Component, it's for URL Shortening and currently supports a number of shorteners such as:

You can find usage cases here: http://onemorefunction.com/blog/examples/shorten

You can download the actual component file here: https://github.com/MadMikeyB/CakePHP-Scrapbook/blob/master/components/shorten.php

Also, please remember to fill out all API Keys, before use. They're marked with REPLACEME. If they're not filled out you'll just get "error".

Feel free to fork it on GitHub, or suggest changes.

Update:

Thanks to Cezz's comment, I've updated the component. You can now pass your API Key, and other details directly as an argument in the $options array. See the comment and example in the file on Github for more information :)

$this->Post->read('Comments');

Mikey said

Monday September, 12 2011 23:49:44

:)

Cezz said

Tuesday September, 13 2011 08:07:38

Cool... is there any way of calling the API keys on the function though instead of them being defined, what I mean is that a user be able to supply their own API keys and so I could then pass theirs instead of the sites!

Matt Kaufman said

Wednesday September, 14 2011 01:22:30

You hvae an awesome blog layout for sure! :)!

// @author

Mikey said

Wednesday September, 14 2011 02:41:48

@Matt - Thank you :)

// @author

Mikey said

Wednesday September, 14 2011 02:51:17

@Cezz it's entirely possible actually, I can manipulate the areas of code where the API Key is set to check the $options variable first.

I'll do an update to the Component and push it to Github with the changes you requested :)

Angelica said

Wednesday August, 7 2013 23:38:47

What an impressive website. Thank you so much for giving the amount of time.

Tasha said

Sunday September, 8 2013 04:19:41

Wonderful website you have here but I was wondering if you knew of any message boards that cover the same topics discussed here? I'd really love to be a part of community where I can get suggestions from other experienced individuals that share the same interest. If you have any recommendations, please let me know. Thanks a lot!

Doug said

Sunday September, 8 2013 04:20:03

This design is spectacular! You most certainly know how to keep a reader entertained. Between your wit and your videos, I was almost moved to start my own blog (well, almost...HaHa!) Wonderful job. I really loved what you had to say, and more than that, how you presented it. Too cool!

Christian said

Thursday January, 30 2014 10:52:21

… I have been left in no doubt that the motivation of the continental legislators is resentment of the success of London. Will Britain wake up too late to this threat to its “biggest single industry”. Stroll by the gardens nearby and walk to the first ever Hard Rock Cafe, the original London one; don't forget to buy your souvenir there.

Christian said

Thursday January, 30 2014 10:52:25

… I have been left in no doubt that the motivation of the continental legislators is resentment of the success of London. Will Britain wake up too late to this threat to its “biggest single industry”. Stroll by the gardens nearby and walk to the first ever Hard Rock Cafe, the original London one; don't forget to buy your souvenir there.

Leigh said

Thursday January, 30 2014 18:50:34

Above ground, most of the touristy parts of New York City (that is, Manhattan, north of Greenwich Village) is a grid. Many optometry offices & other businesses often make the mistake of putting their main focus on trying to outdo their competition from a marketing standpoint, when the main focus should be outdoing them from a customer service standpoint. 2m in the past months, people looking to buy a new home or find a good property to rent near the City or West End start to direct their attention to up-and-coming and somewhat more laidback areas outside Central London.

Leigh said

Thursday January, 30 2014 18:50:38

Above ground, most of the touristy parts of New York City (that is, Manhattan, north of Greenwich Village) is a grid. Many optometry offices & other businesses often make the mistake of putting their main focus on trying to outdo their competition from a marketing standpoint, when the main focus should be outdoing them from a customer service standpoint. 2m in the past months, people looking to buy a new home or find a good property to rent near the City or West End start to direct their attention to up-and-coming and somewhat more laidback areas outside Central London.

Aretha said

Friday January, 31 2014 02:43:03

In addition, you ought to be open up to constructive criticism. pozycjonowanei stron internetowych Znanego serwisy internetowe sa jakimi. Search engines use a given algorithm to score for internet pages and help decide which sites will appear one of the primary hits.

Aretha said

Friday January, 31 2014 02:43:07

In addition, you ought to be open up to constructive criticism. pozycjonowanei stron internetowych Znanego serwisy internetowe sa jakimi. Search engines use a given algorithm to score for internet pages and help decide which sites will appear one of the primary hits.

Hwa said

Friday January, 31 2014 09:23:38

… I have been left in no doubt that the motivation of the continental legislators is resentment of the success of London. Because they have not been feeding us tabloid tales since Thanksgiving. The sash specialist should be able to assist you and give you ideas and suggestions on what will be best for the design and preferences you have for your household.

Hwa said

Friday January, 31 2014 09:23:42

… I have been left in no doubt that the motivation of the continental legislators is resentment of the success of London. Because they have not been feeding us tabloid tales since Thanksgiving. The sash specialist should be able to assist you and give you ideas and suggestions on what will be best for the design and preferences you have for your household.

Kent said

Sunday February, 2 2014 03:34:56

Moreover, you can never tell how great the quality is. Many optometry offices & other businesses often make the mistake of putting their main focus on trying to outdo their competition from a marketing standpoint, when the main focus should be outdoing them from a customer service standpoint. There is just so much choice in the capital for anybody looking for a self storage service.

Kent said

Sunday February, 2 2014 03:34:59

Moreover, you can never tell how great the quality is. Many optometry offices & other businesses often make the mistake of putting their main focus on trying to outdo their competition from a marketing standpoint, when the main focus should be outdoing them from a customer service standpoint. There is just so much choice in the capital for anybody looking for a self storage service.

Tyrone said

Sunday February, 2 2014 20:12:27

… I have been left in no doubt that the motivation of the continental legislators is resentment of the success of London. s impossible to predict the exact levels of disruption the games will cause, it would appear that there's never been a better time for businesses to relocate their data outside the Capital. Need a car service in London connection, Then Mitcham minicab fleet are on hand 24 hours a day in London Bridge, London and the dwelling shires.

Tyrone said

Sunday February, 2 2014 20:12:30

… I have been left in no doubt that the motivation of the continental legislators is resentment of the success of London. s impossible to predict the exact levels of disruption the games will cause, it would appear that there's never been a better time for businesses to relocate their data outside the Capital. Need a car service in London connection, Then Mitcham minicab fleet are on hand 24 hours a day in London Bridge, London and the dwelling shires.

Antonietta said

Sunday February, 2 2014 22:48:34

Some of the common search engine optimization services offered by most SEO service providers include. We are that sure that we will be able to get you to the top of Google Maps. Previously, keyword stuffing was penalized to a certain extent, but the new update really caught on, even to seemingly hidden pages.

Antonietta said

Sunday February, 2 2014 22:48:37

Some of the common search engine optimization services offered by most SEO service providers include. We are that sure that we will be able to get you to the top of Google Maps. Previously, keyword stuffing was penalized to a certain extent, but the new update really caught on, even to seemingly hidden pages.

}