PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
Displaying news posts 1821 to 1840 of 6889

Behat + FuelPHP = RESTful Testing Happiness

Behat + FuelPHP = RESTful Testing Happiness
If you've been following my recent posts, you know I've been working more lately with Behat for resting some REST services. In this post I showed you how to get things set up for some testing. In this post, I'll show you how to use a custom class that I've put together to make a reusable system for testing REST. For those that want to cut to the chase, I've posted some example code to github showing the code for the two different sides of the equation - the Behat testing and the PHP framework side (I...

Using OAuth2 for Google APIs with PHP

Using OAuth2 for Google APIs with PHP
I've been working on something recently where I'm pulling information from lots of places onto a dashboard. Each API has its own little quirks so I'm trying to write up the ones that weren't idiot-proof, mostly so I can refer back to them later when I need to maintain my system! I've written about Google and OAuth before, but that was OAuth v1.0, and they are introducing OAuth2 for their newer APIs; in this example I was identifying myself in order to use the Google Plus API (which turns out not to do...

A Cloudy Place: PHP and Git on AWS Elastic Beanstalk

A Cloudy Place: PHP and Git on AWS Elastic Beanstalk
On the "A Cloudy Place" blog there's a recent post about the steps the author (Shameer) to to get PHP and Git set up on the Elastic Beanstalk service from Amazon.When Amazon announced Beanstalk's support for PHP I was curious to know what it would look like. So I decided to give it a try. I hadn't used my AWS account for a while, so I had to do some account setup tasks, configuring command line tools, etc. In this article I will explain how to set up a PHP application in Beanstalk from scratch.He walks...

Anna Filina's Blog: Podcast About Sexism in Tech: What I Learned

Anna Filina's Blog: Podcast About Sexism in Tech: What I Learned
Anna Filina has a new post to her blog about her participation in the "Sexism in Tech" podcast that was recently released on the "Voices of the ElePHPant" podcast.I had the pleasure of discussing with fellow members of the PHP community a very sensitive topic: sexism in tech. I have been invited to a special episode of Voices of the ElePHPant with Elizabeth (Beth) Tucker Long, Elizabeth (Liz) Naramore and Laura Thomson. Cal Evans was the host. The podcast's page features links for some of the topics...

Satish Gopal's Blog: Building RESTful services - part 2

Satish Gopal's Blog: Building RESTful services - part 2
In part two of his series (part one is here) on building RESTful interfaces, Satish Gopal talks about things like hypermedia and HATEOAS.This is part 2 of "Building RESTful services". In Part 1 we talked about Level 1 and Level 2 of the Richardson Maturity Model. [...] Now imagine if you had to [find the URI] for every single website, each having a different kind of document in a different custom format. The internet would certainly not be what it is today. Yet a majority of the APIs built today make us...

Lorna Mitchell's Blog: Using JIRA's REST API to Create a Dashboard

Lorna Mitchell's Blog: Using JIRA's REST API to Create a Dashboard
In this recent post to her blog, Lorna Mitchell shows how to use the Jira REST API (provided as a part of some of the newer versions of the tool) to create a "dashboard" of the latest items added to the tracker.Today what you get is an example of integrating with JIRA's REST API, because their recent "upgrade" locked me out of the issue listings pages completely and I really do need to be able to see a list of bugs! Their bug editing screen is quite usable, so it's just the list that I need here, but you...

PHP's Source Code For PHP Developers - Part 4 - Arrays

PHP's Source Code For PHP Developers - Part 4 - Arrays
Part 4 of the PHP's Source Code for PHP Developers series is up over onANikic's Blog. AIn it, he discusses how arrays are handled in PHP internals. AHe talks a lot about hash tables and symbol tables, and how they work together to make PHP a working language. APart 5 will be back over here, and we'll talk about objects and classes! AEnjoy!

Liip Blog: Table Inheritance with Doctrine

Liip Blog: Table Inheritance with Doctrine
On the Liip blog there's a recent post looking at table inheritance with Doctrine, the popular PHP ORM tool. In the post, Daniel Barsotti talks about a database model that needed some updating due to their searching needs.Our first idea, and it was not that bad, Drupal does just the same, was to have a database table with the common fields, a field containing the type of item (it's either an event or a blog post) and a data field where we serialized the corresponding PHP object. This approach was ok...

The Power of Technical Debt

The Power of Technical Debt
Lately, I've found myself in a number of discussions about Technical Debt and how it applies to project development. Overall, I think it's a very powerful tool that -- when used wisely -- can be a great asset to any team. It seems to me that most of the people that I've been talking to really don't agree, and see Technical Debt as a plague that should be eliminated at first sight. So, I figured I'd share my opinions, and see what you think...Read more A

Chris Hartjes' Blog: Metatesting: Understanding Mock Objects

Chris Hartjes' Blog: Metatesting: Understanding Mock Objects
In this new post to his blog Chris Hartjes gets into some details about some complex mocking he recently had to do in a project for work. He includes code snippets to illustrate.With such an extensive array of tests [at work], I have received an education in what it really means to write unit tests for live, production-ready code that really takes unit testing seriously. [...] If you are really writing your unit tests the way you should, each test is focusing on testing one bit of functionality in...

Community News: Latest Releases from PHPClasses.org

Community News: Latest Releases from PHPClasses.org
Secure MD5 PayPal recurring payments API Twitter Feed API SQL Manager PDO Paginate MD5 Cracker md5Cracker Digital Clock Box Model

Understanding PHP's internal array implementation (PHP's Source Code for PHP Developers - Part 4)

Understanding PHP's internal array implementation (PHP's Source Code for PHP Developers - Part 4)
Welcome back to the fourth part of the aoPHP's Source Code for PHP Developersa series, in which we'll cover how PHP arrays are internally represented and used throughout the code base. In case you missed them, here are the previous parts of this series:Part 1: Structure of the source code and introduction to CPart 2: Finding and understanding PHP's internal function definitions Part 3: PHP's internal value representation: The zval Everything is a hash table! Basically, everything in PHP is a hash table....

Brooklyn Beta 2012

Brooklyn Beta 2012
Brooklyn Beta is becoming more than a conference. It's still a conference, too, and although I never did recap last year's conference like I wanted to, I did collect a bunch of posts, photos, and videos on Gimme Bar. Also, Nate Bolt and Captain & the Fox collaborated on a really cool video that captures the spirit of it. I love it. Check it out:If you were there last year, you might like to know that Joel Rose launched New Classrooms, Tony Fadell launched Nest, and Todd Park was named the new CTO of the...

Brooklyn Beta 2012

Brooklyn Beta 2012
Brooklyn Beta is becoming more than a conference. It's still a conference, too, and although I never did recap last year's conference like I wanted to, I did collect a bunch of posts, photos, and videos on Gimme Bar. Also, Nate Bolt and Captain & the Fox collaborated on a really cool video that captures the spirit of it. I love it. Check it out:If you were there last year, you might like to know that Joel Rose launched New Classrooms, Tony Fadell launched Nest, and Todd Park was named the new CTO of the...

Voices of the ElePHPant: Sexism in Tech

Voices of the ElePHPant: Sexism in Tech
The Voices of the ElePHPant podcast has varied from it's usual interview style in this new episode - a panel discussion with several members of the PHP community, "Sexism in Tech".Guests for this episode were Elizabeth Naramore, Laura Thompson, Anna Filina and Elizabeth Tucker Long. Cal and the panel discuss a few questions including: Given the tech in a male dominated industry [...] why are women entitled to change a culture that doesn't want to be changed? Does it make it okay if the material in...

Justin Carmony's Blog: PHP, Sessions, __sleep, and Exceptions

Justin Carmony's Blog: PHP, Sessions, __sleep, and Exceptions
Justin Carmony has a recent post to his blog about a problem he came across where his exception was being thrown with a line number of zero - cause for some investigation.Today I ran into a problem where my PHP Application would throw this fatal error: "Fatal error: Exception thrown without a stack frame in Unknown on line 0". Which is so much fun, because it doesn't have a line number, so I had no direction as to what exactly was causing the problem.He found a blog post that helped him track down the...

PHPMaster.com: How I Faked Scheduled Database Dumps Without Cron

PHPMaster.com: How I Faked Scheduled Database Dumps Without Cron
On PHPMaster.com today there's a new tutorial about a way to simulate cron jobs to dump the contents of a database with a simple script that fires off based on the last login time of a certain user (using the MySqlDumper tool).My program required a accurate username and password to present its features to the user, and there is one predefined user who is idle most of the time and does just two things: wipe stale database entries and restore the database when needed. According to my login procedure, each...

PHPMaster.com: How I Faked Scheduled Database Dumps Without Cron

PHPMaster.com: How I Faked Scheduled Database Dumps Without Cron
On PHPMaster.com today there's a new tutorial about a way to simulate cron jobs to dump the contents of a database with a simple script that fires off based on the last login time of a certain user (using the MySqlDumper tool).My program required a accurate username and password to present its features to the user, and there is one predefined user who is idle most of the time and does just two things: wipe stale database entries and restore the database when needed. According to my login procedure, each...

Cats Who Code: Sending SMS with PHP and TextMagic: An A to Z guide

Cats Who Code: Sending SMS with PHP and TextMagic: An A to Z guide
On the Cats Who Code site today there's a new tutorial showing how to send SMS messages from your PHP application with the help of the TextMagic service.Over the years, Short message service (SMS) has become a very important way of communication, and many businesses are looking for easy ways to send automated text messages to their customers. In this tutorial, I'm going to show you how you can send SMS using PHP and a third party service called TextMagic. Its very easy to do!They step you through the...

Cats Who Code: Sending SMS with PHP and TextMagic: An A to Z guide

Cats Who Code: Sending SMS with PHP and TextMagic: An A to Z guide
On the Cats Who Code site today there's a new tutorial showing how to send SMS messages from your PHP application with the help of the TextMagic service.Over the years, Short message service (SMS) has become a very important way of communication, and many businesses are looking for easy ways to send automated text messages to their customers. In this tutorial, I'm going to show you how you can send SMS using PHP and a third party service called TextMagic. Its very easy to do!They step you through the...

Latest PHP Tweets