December 25, 09 by Gabi Solomon
Recently i posted on google code a library we developed to interact with Adwords Api from php.
Php Adwords API Library was developed by Hyperactive team for an internal project, since we didn’t like options available and felt we could do something that would be easier to work with, at least for us. We made it public so that others looking for a php library to interact with adwords api would have more options to chose from ( plus free testing for us :-p ).
The project can be found here:
http://code.google.com/p/php-adwords-api/
It is still a work in progress and does not yet support all the services and functions of the API, but we hope to add more services as soon as possible. And if you need a certain service or function please dont hesitate to add a ticket on google code and request it.
You will find examples of usage in the folder examples of the library.
January 03, 09 by Gabi Solomon
If you ever had to build a site in a language that had special characters or a multilanguage website, then you have had problems with UTF encoding for sure.
Well recently a new class was published on phpclasses.org by Rubens Takiguti Ribeiro called Unicode Manipulation that will solve your problems.
The class is a complete solution to manipulate Unicode encoded text with support for UTF-16 and UTF-32 besides UTF-8.
This class can be used to manipulate text with Unicode encodings.
It can perform several types of operations that involve text strings encoded as UTF-8, UTF-16 or UTF-32, like:
- Get the text sequence for byte order mark for little and big endian
- Convert a given character code to Unicode encoded text and vice-versa
- Get the byte length of a given Unicode encoded character
- Convert text encoding between UTF-8, UTF-16 and UTF-32
- Get a part of an Unicode encoded string from a given position and an optional length
- Get the string length of an Unicode encoded text
- Determine whether a given string has Unicode encoded text
[Class Page]
Hope you find it usefull,
Cheers.
December 01, 08 by Gabi Solomon
Yet another great class found on the php classes website.
This one has been in my draft folder for a while (the place i keep my articles ideas ), and finally it came time to write about it (manage to put my laziness away and write it).
The class is called open Inviter and has received the rank of november 2008 Nominee for Innovation Award. I personally hope it will win it, i think it really deserves it.
Describtion
This package can be use to get the contacts of friends of different e-mail providers and social networks.
It can access the Web services servers of different networks to retrieve the contacts of friends of a given user.
Each network is accessed by the means of plug-in classes. Some plug-ins support sending invitation messages to friends to be added to the user contacts.
The class currently comes with plug-ins that support :
* AOL
* GMail
* GMX.net
* Windows Live (Hotmail)
* Katamail
* Lycos
* Mail.com
* Mail.ru
* Rambler.ru
* Rediff
* Yahoo!
* Yandex
* Facebook
* Hi5
* LinkedIn
* MySpace
* Orkut
* Twitter
The class is very easy to use, and comes with a very detailed example of how you can implement it.
[Class full description & download link]
Hope it helps you in your development.
Cheers.
November 02, 08 by Gabi Solomon
view this article in romanian
I have an email subscription to phpclasses email newsletter, and read it to see what new classes have been added to the site. And once in a while i will find interesting and innovative classes. Like today when between the classes that won the Innovation award was one that caught my attention.
The class developed by Benjamin Falk that he called Relink is a very interesting and useful tool in my opinion.
Lets say that you have a website and after you build it you want to make some SEO for it. That usually involves modifying all the links in the website. And that is quite a task. But what if you are like me and know a few things about SEO but are no expert, and somewhere down the line you either hire a SEO expert or receive an expert advice and want to change all those links ? Another time spent on tedious task of find and replace. And if we are talking about a larger project than that could be quite a big time.
Well what this class enables you to do is to make your links dynamically generated based on your .htaccess configuration. Let be more specific, first you must initialize the class
PHP:
-
require_once 'class.relink.php';
-
-
$htaccessFile = './htaccess-example';
-
$c_relink = new RELINK($htaccessFile);
-
-
// If you leave the $htaccessFile empty it will automatically take the .htaccess file from the current directory.
Then everywhere in the script where you have a link you will put something like
PHP:
-
echo '<a href="'.
$c_relink->replaceLink
('?page=blog').
'">View blog</a> | ';
-
echo '<a href="'.
$c_relink->replaceLink
('?page=blog&mode=edit').
'">Edit Blog</a> | ';
-
echo '<a href="'.
$c_relink->replaceLink
('?info&value=all').
'">Show all information</a>';
I didn't use it in any projects so far but I think i will do it on my next project.
Hope this new class is as interesting to you as it was to me.
Cheers