News Feed
Jobs Feed
Sections



Recent Jobs

News Archive
feed this:

Jakub Zalas' Blog:
Managing object creation in PHP with the Symfony2 Dependency Injection component
September 08, 2011 @ 09:24:55

On his blog today Jakub Zalas has posted a tutorial he's written up about using dependency injection in PHP with the Symfony2 dependency injection component (DIC).

Symfony's DependencyInjection component is a PHP implementation of a Service Container, or as others like to call it, a Dependency Injection Container (DIC). The component also provides useful tools for handling service definitions, like XML loaders or dumpers. If you want to learn more about the dependency injection or the dependency injection container, read an excellent series of articles on the subject by Fabien Potencier: What is Dependency Injection?

He walks you through the entire process - installing the needed libraries (the DIC, a config and class loader component and Buzz, a lightweight HTTP client). Code is included to show object creation the "usual way" and then creating the same types of objects in a dependency injection environment. Also included is a sample XML document describing the services for the container. He finishes the post with a GraphvizDumper-generated image for the container.

0 comments voice your opinion now!
dependency injection symfony2 component services xml tutorial



Brian Swan's Blog:
Getting Started with SQL Server Reporting Services (SSRS) and PHP
May 06, 2010 @ 10:12:15

Brian Swan has a new post to his MSDN blog today that looks at working with the SQL Server Reporting Services SDK and PHP to automatically create some reports based on the date in your database.

In this post I'll dive into the SSRS SDK for PHP that was recently released by the Interoperability team here at Microsoft. [...] The documentation in the SDK is complete with explanations for the classes that make up the SDK, code examples, and a "hello world" example. However, in this post, I'll build a simple web page (code attached to this post) that renders the Sales report that I created last week.

He starts off with an overview of how all of the technology will fit together and some of the things you'll need to have before you can get started - a user with the right permissions and a connection to the server. The "SSRSReport" class in the SDK gives you quick access to load a report based on a named location. You can then use methods like "RenderAsHTML" to output it as HTML or one of other methods (like CSV, text, PDF, etc).

0 comments voice your opinion now!
reporting services sqlserver ssrs sdk tutorial


RIAZone:
Integrating PHP with Flash Collaboration Services
December 14, 2009 @ 13:47:28

On the RIA Zone (a part of the DZone network) there's a new tutorial from Ryan Stewart about combining PHP with the Flash Collaboration Services (real-time collaboration and social capabilities via the LCCS) in the second part of his series (part one).

Another great way to integrate LCCS and PHP is with the REST APIs and the library that ships with the LCCS SDK. With those APIs we can perform a number of management functions including creating and deleting rooms, managing roles, and creating templates. These APIs make it very easy to create a customized, dynamic collaboration experience with PHP. You can create rooms on the fly for your users and get information about what kind of content is in those rooms. In this example we're going to create a basic room manager with PHP that will let us create, delete, and view information about specific rooms.

Code is included to use the AFCS PHP library to connect to the Services API and pass in the username and password directly from the user. The request is made and a token is passed back to the calling script. The XML description of the full Flex application is included in the tutorial.

0 comments voice your opinion now!
flash collaboration services api tutorial


IBM developerWorks:
Calling eBay using the Service Component Architecture
May 15, 2007 @ 08:36:00

From the phpblog on the IBM developerWorks website today, there's a quick new tutorial focusing on the use of the Service Component Architecture functionality in PHP to interface with the web service API that eBay offers.

I've just made the first code drop to support calling eBay Web services using the Service Component Architecture. Anyone who's tried calling the eBay soap APIs will know there are quite a few hoops to jump through to get it working. [...] The SCA eBay soap support hides this complexity by allowing you to specify the information as configuration parameters and then it makes sure the right things are placed in the header or the URL.

A code example is included that makes a connection to the web service, calls the GetSearchResults action for the query of "ipod" and, upon getting the results back, loops through them to display them to the page.

0 comments voice your opinion now!
servicecomponentarchitecture sca ebay webservice api search servicecomponentarchitecture sca ebay webservice api search


Aaron Wormus' Blog:
Interoperability is Overrated
February 14, 2007 @ 07:19:00

Despite opinions from some of the PHP community, interoperability between PHP applications isn't is such a bad state - at least According to Aaron Wormus:

The fact of the matter is that it's not such a big deal. Porting a plugin from Wordpress to Serendipity is usually trivial, and as we see more web-services based plugins (stuff like the awesome askimet) the task becomes simpler and simpler.

Interoperability is overrated, the more you think of it the more complex it gets. As you start throwing in new factors into the equation (how will this interoperate with a java/c# application) you start to develop monsters like JSR 170 which solve a lot of problems on paper, but in reality are too unwieldy to be truly useful.

He even lists out some of his "steps to interoperability" to help speed things along (like "use as much abstract code as possible" and "use services").

0 comments voice your opinion now!
interoperability overrated abstract libraries glue services interoperability overrated abstract libraries glue services


Adam Trachtenberg's Blog:
PHP SOAP vs. SDO
October 13, 2006 @ 07:06:47

In his latest blog post, Adam Trachtenberg looks into the world of web services and comes out with three topics - SOAP, axis2, and SDO. He chooses to focus, though, on the last of these after working with it to really get a feel for what it can do.

n my role as eBay Platform Evangelist, I spend a lot of time exploring different XML technologies. SOAP is obviously the big one. No, it's not PEAR::SOAP or NuSOAP; it's axis2.

He talks a bit about what axis2 is and the need it fills in the web services world. He also talks about how it's been developed (not copied after SOAP, but more of a fresh start that happens to do the same things). After this quick look at axis2, though, he gets into the head of the post - SDO.

The other PHP XML extension I've been hearing a lot about is SDO. SDO is an attempt to provide a standard data interface regardless of the backend datasource. So, for example, you can interact with XML data in the exact same manner as information pulled from your database.

Adam decided to give it a try and see how it interacted with the eBay API with some simple code examples. The first of which looks through eBay Motors and finds the title and mileage for each of the items grabbed. It worked well, and didn't require too much more development than the SOAP predecesor, but there were a few quirks that made things a bit more difficult (like SDO's inability to completely consume a WSDL file and understand a SOAP service's functionality).

0 comments voice your opinion now!
soap web service sdo axis2 example ebay api motors soap web service sdo axis2 example ebay api motors


Zend Developer Zone:
Ben Ramsey on XML, SOAP, and Web Services
October 05, 2006 @ 09:43:00

On the Zend Developer Zone, Cal Evans talks about one of the presenters of the upcoming Zend/PHP Conference and Expo - Ben Ramsey. He asked Ben some questions about the conference and a talk that he'll be giving - "XML & Web Services with PHP (An Overview)".

Ben Ramsey will be speaking on "XML & Web Services with PHP (An Overview)" at the upcoming Zend/PHPConference and Expo. Since I hang out with Ben in the freenode.net #phpc channel I thought it would be cool to talk to him for a bit about his session.

They talk about why Ben is passionate about web services, the two popular protocols for using these services - SOAP and REST, and which one of them Ben prefers.

0 comments voice your opinion now!
web services xml soap rest interview zendcon2006 web services xml soap rest interview zendcon2006


Davey Shafik's Blog:
More Web Services
October 02, 2006 @ 08:55:00

Davey Shafik has posted another update on his web services component he's working up for the Zend Framework, the Zend_Service_Server.

I have been working closely with Matthew Weier O'Phinney for the last week on bringing my Zend_Service_Server proposal to fruition.

There have been several changes, but the core has not moved too far. Matthew, Andi and I have decided that we will first implement the different server/client libraries.

He lists the libraries they'll need to tackle first and talks about an "exercise" he did to work up a JSON server component that works in a similar fashion.

0 comments voice your opinion now!
web services zend_service_server libraries zend_json_server web services zend_service_server libraries zend_json_server


PHPied.com:
The PEAR book is on it's way
September 12, 2006 @ 16:25:06

To prepare the way for the upcoming PEAR book from Packt Publishing correctly, Stoyan Stefanov has posted this info about the book and where to find the latest details on it.

Here's the link to publisher's page dedicated to the PHP Programming with PEAR. Guess who wrote the chapter for MDB2? ;)

It's an honour to me to be in the company of the other authors, people who have done a lot for the PEAR community

He also mentions some of the topics that the book will contain, including accessing databases with MDB2, creating and parsing XML documents, and accessing web APIs. The book is coming out in September, so keep on the lookout for it at your local bookseller soon.

0 comments voice your opinion now!
pear book packt publishing mdb2 xml pdf web api services pear book packt publishing mdb2 xml pdf web api services


Zend Developer Zone:
Live Blogging From php/db|works 2006
September 12, 2006 @ 15:49:47

This week, Cal Evans is reporting live from this year's php/db|works conference in Toronto. Since today is "Tutorial Day", the schedule is a little lighter, and he makes to time to catch Rob Richards' talk on PHP and Advanced XML and Web Services.

Rob Richards is the author of Pro PHP XML and Web Services. He literally wrote the book on using PHP and XML together. At php|works, he is leading a tutorial on using XML in web services using the DOM extension.

If you ever get a chance to hear Rob do a presentation, let me warn you, it is not for the faint of heart. As I learned last night when I sat down with Rob to record an interview, Rob likes to speak on leading edge and advanced topics. This tutorial is an excellent example of that philosophy.

Cal talks more about the content of the talk - its simplicity despite the complex topic, how much info is jammed in, and the fact that it's not just one giant pitch for Rob's book.

0 comments voice your opinion now!
liv blogging conference phpdbworks2006 tutorial xml web services liv blogging conference phpdbworks2006 tutorial xml web services



Community Events





Don't see your event here?
Let us know!


security unittest opinion release framework test application introduction development conference interview community component podcast series custom language api symfony2 phpunit

All content copyright, 2012 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework