<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Wed, 19 Jun 2013 15:26:05 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[PHPMaster.com: Adding Text Watermarks with Imagick]]></title>
      <guid>http://www.phpdeveloper.org/news/18970</guid>
      <link>http://www.phpdeveloper.org/news/18970</link>
      <description><![CDATA[<p>
On PHPMaster.com there's <a href="http://phpmaster.com/adding-text-watermarks-with-imagick/">a recent tutorial</a> from <i> Martin Psinas</i> about how you can add text to an image with the help of Imagick, the image editing software that's available to PHP via an extension.
</p>
<blockquote>
In a previous article, Timothy Boronczyk wrote about how to <a href="http://phpmaster.com/watermarking-images/">create watermarks with Imagick</a> using an overlay image. In this article, I'll show you how to achieve a similar effect using plain text.
</blockquote>
<p>
He takes a sample image (a headshot) and offers two versions of the same functionality - both the shell command (using "convert") and the PHP code that sets up the font to use, adds placement and pushes the result back out as a PNG. He also includes two other types of overlay - a  font mask for a more see-through look and a tiled version, overlaying the text all over the image.
</p>]]></description>
      <pubDate>Mon, 31 Dec 2012 09:15:48 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[LearnComputer.com: Sending Text Messages with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/18515</guid>
      <link>http://www.phpdeveloper.org/news/18515</link>
      <description><![CDATA[<p>
In <a href="http://www.learncomputer.com/text-messages-with-php/">this new tutorial</a> on LearnComputer.com, they show you how to, using a simple call to PHP's <a href="http://php.net/mail">mail</a> function, you can send a text message to anyone.
</p>
<blockquote>
Text messaging seems more convenient than making phone calls and creating your own PHP script to send these messages is a very easy thing to set up. Get on board with these other companies that have found how convenient text messages are for their customer and start integrating text messaging into your PHP applications. In this article, I will show you two ways to accomplish this and you will be surprised at how simple this is to do.
</blockquote>
<p>
Once you've found the <a href="http://www.venture-ware.com/kevin/web-development/email-to-sms/">right email address for the provider</a>, sending the message is pretty simple using <a href="http://php.net/mail">mail</a>. As an alternative, they recommend a service like <a href="http://www.textmagic.com/">TextMagic</a> to send the messages. It's a bit more reliable and uses SMS instead of email to get your message out.
</p>]]></description>
      <pubDate>Tue, 25 Sep 2012 09:15:38 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPMaster.com: WordPress Plugin Development]]></title>
      <guid>http://www.phpdeveloper.org/news/17561</guid>
      <link>http://www.phpdeveloper.org/news/17561</link>
      <description><![CDATA[<p>
On PHPMaster.com today there's a new tutorial showing how you can <a href="http://phpmaster.com/wordpress-plugin-development/">create a custom WordPress plugin</a> for the popular PHP-based blogging/CMS tool.
</p>
<blockquote>
If you've ever used WordPress to build a site quickly, chances are you've used one of the many plugins that are offered to extend the functionality of this popular blogging software. Plugins are one of the many things that make WordPress so attractive. [...] There are times, however, when you can't quite find what you need from existing plugins. This article will show you how to create your own WordPress plugins by walking you through an example to display some text using a widget in a the sidebar.
</blockquote>
<p>
He walks you through all of the steps you'll need to create the plugin - making the main plugin file (definition) and using some of the methods available to create the functionality: update, form, widget and the constructor to set it all up.
</p>]]></description>
      <pubDate>Mon, 20 Feb 2012 10:50:39 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Martin Psinas' Blog: Watermarking with text and ImageMagick]]></title>
      <guid>http://www.phpdeveloper.org/news/16947</guid>
      <link>http://www.phpdeveloper.org/news/16947</link>
      <description><![CDATA[<p>
<i>Martin Psinas</i> has submitted a new tutorial he's written up (complete with sample code) showing how to <a href="http://psinas.com/index.php?blogid=38">watermark an image with ImageMagick</a>.
</p>
<blockquote>
In my most recent venture with <a href="http://www.phpmaster.com/">PHPMaster</a> I was asked to write an article about watermarking images with PHP using ImageMagick. Virtually no documentation exists on the <a href="http://php.net/imagick">PHP API</a>, although there are plenty of command-line examples from the official <a href="http://www.imagemagick.org/Usage/annotating/#wmark_text">ImageMagick website</a>. I spent a solid day and a half attempting to convert command-line code into PHP before (due to miscommunication) the topic was covered by someone else and my work was no longer needed. Although disappointed, it gave me something to blog about! Yay.
</blockquote>
<p>
His script is pretty straight forward - it loads a sample image, sets up some watermark text and applies it with a "gravity" setting of "southwest" and adds it to the image (annotateImage). The output is pushed back out as a JPEG image. Also included is a slightly more complex example showing how to give the watermark an embossed look and a "text all over the image" look to prevent use of any part of the image, not just one section.
</p>]]></description>
      <pubDate>Tue, 04 Oct 2011 11:44:35 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Christian Weiske's Blog: A MIME type for .php files]]></title>
      <guid>http://www.phpdeveloper.org/news/16195</guid>
      <link>http://www.phpdeveloper.org/news/16195</link>
      <description><![CDATA[<p>
<i>Christian Weiske</i> has a recent post to his site looking at something most PHP developers don't even think about when serving up their scripts - the <a href="http://cweiske.de/tagebuch/php-mimetype.htm">MIME types for PHP files</a>.
</p>
<blockquote>
While setting some svn properties at work, we wondered about the correct MIME type for .php files.
</blockquote>
<p>
He found several in the <a href="http://www.iana.org/assignments/media-types/">official IANA list</a> including "text/php", "application/php" and "application/x-http-php" - all valid but none of them considered a standard. He talks about the ones supported by linux distributions (like Debian/Ubuntu) and some reasoning that might make "application/php" the best choice of the list. He points out some downsides to the choice, though, including the fact that something starting with "application/" should considered "machine readable" only despite PHP just being text.
</p>]]></description>
      <pubDate>Thu, 14 Apr 2011 09:17:06 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Michael Maclean's Blog: Using Pango for PHP: a taster]]></title>
      <guid>http://www.phpdeveloper.org/news/15943</guid>
      <link>http://www.phpdeveloper.org/news/15943</link>
      <description><![CDATA[<p>
<i>Michael Maclean</i> has a new article today talking about the <a href="http://pango.org/">Pango</a> graphics library and how it can be coupled with the <a href="http://pecl.php.net/package/cairo">Cairo PECL extension</a> to more easily create better looking text in dynamic images.
</p>
<blockquote>
The <a href="http://pecl.php.net/package/cairo">PECL/Cairo</a> library is pretty good at drawing vector graphics (in our opinion, as the developers, at least!), but one thing it's not able to do by itself is draw text with mildly advanced layout. [...] That's because the developers of the Cairo library decided to let another more specialised library handle the job of text layout.
</blockquote>
<p>
<i>Michael</i> has created <a href="https://github.com/mgdm/php-pango">a wrapper</a> for Pango in PHP (github) and some sample code that can be used as a test to ensure it's all setup and working. He steps through each part of the image creation and describes what's happening and what each method is doing along the way.
</p>]]></description>
      <pubDate>Tue, 22 Feb 2011 12:58:27 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[NetTuts.com: How to Send Text Messages with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/15801</guid>
      <link>http://www.phpdeveloper.org/news/15801</link>
      <description><![CDATA[<p>
On NetTuts.com today there's a new tutorial showing you how to <a href="http://net.tutsplus.com/tutorials/php/how-to-send-text-messages-with-php/">send text messages</a> via SMS directly from your script to the user's cell phone.
</p>
<blockquote>
Text messaging has become extremely widespread throughout the world - to the point where an increasing number of web applications have integrated SMS to notify users of events, sales or coupons directly through their mobile devices. In this tutorial, we will cover the fundamentals of sending text messages with PHP.
</blockquote>
<p>
Their method "cheats" a little bit and uses an interface many of the cell phone providers offer to their subscribers - a link from an email address to SMS. Most providers <a href="http://www.venture-ware.com/kevin/?p=83">have their domains</a> you can send the email to and have it automatically forwarded to the user's cell as a text. Thankfully, this requires nothing more than the <a href="http://php.net/mail">mail</a> function to accomplish. They include the sample code and HTML+CSS to make a basic form as well as mention <a href="http://phpmailer.worxware.com/">PHPMailer</a> as a more powerful mailing alternative.
</p>]]></description>
      <pubDate>Tue, 25 Jan 2011 10:14:39 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Samuel Folkes' Blog: The Tools You Need For PHP Development]]></title>
      <guid>http://www.phpdeveloper.org/news/13403</guid>
      <link>http://www.phpdeveloper.org/news/13403</link>
      <description><![CDATA[<p>
<i>Samuel Folkes</i> has <a href="http://www.samuelfolkes.com/2009/10/the-tools-you-need-for-php-development/">posted a few of his ideas</a> on the tool(s) that every PHP developer needs to have on his belt to make their work easy and more effective.
</p>
<blockquote>
Quite often, I am asked the question "What tools do I need for PHP development?". [...] For those who will listen, I have one very simple answer to that question: Aside from a server running PHP and a text editor, you need absolutely nothing. That answer may seem extreme but its the truth. Lets break it down.
</blockquote>
<p>
<i>Samuel</i> suggests that, while the choices for IDE, debuggers and other tools for PHP development are too many to count, nothing is as good and clean as a basic text editor (his choice is <a href="http://notepad-plus.sourceforge.net/">Notepad++</a>). There are a few things that can make your code more effective like <a href="http://www.phpdoc.org/">phpDocumentor</a> or <a href="http://www.phpunit.de/">PHPUnit</a>, but those are more about good coding practices than how you develop.
</p>]]></description>
      <pubDate>Sat, 17 Oct 2009 06:26:19 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Building Helpers in PHP 5]]></title>
      <guid>http://www.phpdeveloper.org/news/12909</guid>
      <link>http://www.phpdeveloper.org/news/12909</link>
      <description><![CDATA[<p>
DevShed has started up a new series of tutorials today with <a href="http://www.devshed.com/c/a/PHP/Building-Helpers-in-PHP-5/">this first part</a> of their "helpers in PHP5" series. They look at some of the first steps into creating these helpers and the handy methods inside.
</p>
<blockquote>
Despite its seeming simplicity, building helpers can be a pretty challenging process, particularly for beginners whom are just starting to implement the object-oriented paradigm in PHP 5. [...] I'm going to introduce you as gently as possible to creating different types of helpers, which hopefully will make you understand the basis of this process and encourage you to create your own.
</blockquote>
<p>
They start off with a <a href="http://www.devshed.com/c/a/PHP/Building-Helpers-in-PHP-5/1/">text helper</a> that gives you methods to change newlines to &lt;br> or &lt;p> tags. They extend the class a bit more by adding in a few other methods - convert newlines to &lt;div> tags, and uppercase/lowercase/uppercase the first letter in a string.
</p>]]></description>
      <pubDate>Tue, 21 Jul 2009 07:56:28 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPBuilder.com: The ABC's of PHP Part 5 - Strings & Text ]]></title>
      <guid>http://www.phpdeveloper.org/news/12355</guid>
      <link>http://www.phpdeveloper.org/news/12355</link>
      <description><![CDATA[<p>
PHPBuilder.com has <a href="http://www.phpbuilder.com/columns/peter_shaw04152009.php3">the latest in their series</a> looking at beginner level PHP and some of the core concepts that go with it ("The ABC's of PHP"). This latest tutorial looks at string and text handling.
</p>
<blockquote>
In the last part of this series we looked at what a variable was in general. Today we'll be covering strings and text. We'll look at the contents those variables would typically hold. 
</blockquote>
<p>
Topics include the differences between single and double quotes, appending to a string and special characters (like line feeds and tabs). Code snippets are provided for each to help you visualize what they mean.
</p>]]></description>
      <pubDate>Thu, 16 Apr 2009 09:31:25 -0500</pubDate>
    </item>
  </channel>
</rss>
