News Feed
Sections




News Archive
feed this:

Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

NetTuts.com:
Integrate Bitcoin Payment Gateway Into OpenCart Part 1
December 17, 2014 @ 10:46:50

On the NetTuts.com site today they've posted the first part of a series showing the integration of the BitPay bitcoin payment service into an OpenCart instance. In this first part they focus on getting some of the initial setup and administration handling set up.

In this series, we are going to look at building a Bitcoin payment system into our installation of OpenCart. Before we get started, I recommend that you practice the basic OpenCart module development if you are not familiar with how to build your own modules. Once done, you should have enough knowledge to continue with developing more advanced modules. In this series, that's exactly what we aim to do.

They start by having you download the BitPay API library and dropping it into the root directory of your OpenCart installation. Next they show you how to create an "Admin" controller with the data you'll need to pass into the view including data pulled from a model. They also create the admin view showing the current orders using bitcoin as payment, their status and options to change the speed of the API requests, status and toggling test mode on and off. Finally they include the code to save the results of the admin form submission and a bit of validation around user permissions and API key validity.

0 comments voice your opinion now!
opencart payment integration bitpay bitcoin series part1

Link: http://code.tutsplus.com/articles/integrate-bitcoin-payment-gateway-into-opencart-part-1--cms-22328

SitePoint PHP Blog:
Installing and Securing Jenkins
December 01, 2014 @ 13:09:43

The SitePoint PHP blog has posted the first part of a new series of articles showing you how to use (and secure) Jenkins, the popular continuous integration tool, to bring more quality to your PHP-based applications.

Earlier this year, I wrote an article about PHP-CI, which you can use as a continuous integration tool for your PHP projects. Within this article I indicated I still liked Jenkins the most as a CI tool. Time to dive into Jenkins and see how we can set this up for our PHP project.

In this first part of the series helps you get Jenkins installed via a package and configure it on the server. He then gets into the steps to secure the installation: configuring users, turning off signups and the type of security to set up (they choose matrix-based). He wraps up the article with a look at installing some useful plugins and using a template to use as a base for setting up your projects.

0 comments voice your opinion now!
series part1 jenkins qualityassurance qa install security tutorial

Link: http://www.sitepoint.com/installing-securing-jenkins/

SitePoint PHP Blog:
Practical OOP Building a Quiz App - Bootstrapping
November 14, 2014 @ 13:44:09

The SitePoint PHP blog has kicked off a new series of posts today with the first tutorial about building an application with OOP and the Slim framework. In this starting article they focus in on bootstrapping the application and introducing some of the basics behind MVC and OOP.

At a certain point of my development as a PHP programmer, I was building MVC applications by-the-book, without understanding the ins-and-outs. I did what I was told: fat model, thin controller. Don't put logic in your views. What I didn't understand was how to create a cohesive application structure that allowed me to express my business ideas as maintainable code, nor did I understand how to really separate my concerns into tight layers without leaking low-level logic into higher layers. I'd heard about SOLID principles, but applying them to a web app was a mystery. In this series, we'll build a quiz application using these concepts. We'll separate the application into layers, allowing us to substitute components: for example, it'll be a breeze to switch from MongoDB to MySQL, or from a web interface to a command-line interface.

They start off with a bit about why "MVC is not enough" and how they'll be applying domain modeling as a part of the application. There's also a brief mention of the concept of a service layer and how it will fit into the overall structure. Then it's on to the code: getting Slim installed (via Composer) and starting in on the interface/service classes for the Quiz. They walk you through entity creation for the Quiz and Question instances and a mapper to tie them together.

0 comments voice your opinion now!
practical oop tutorial series part1 bootstrap slimframework solid mvc

Link: http://www.sitepoint.com/practical-oop-building-quiz-app-bootstrapping/

NetTuts.com:
Programming with Yii2 Getting Started
October 31, 2014 @ 10:51:23

On the NetTuts.com site today Jeff Reifman has kicked off a new series of posts introducing you to the Yii2 framework and what it has to offer. In this first post he starts with the basics - installation, setup and configuration of a Yii2 application.

This tutorial will walk you through installing Yii 2.0, setting up your local development environment, building a simple Hello World application, setting up your remote production environment for hosting and deploying your code from a GitHub repository.

He walks you through the install process, via Composer, and creating a new project, the "Hello World". The tutorial also helps you set up a local development environment with MAMP and what the resulting page should look like when loaded. He then gets into some of the architecture of a Yii-based application and starts in on the "Hello World" controllers and views. He finishes the post with a look at setting up a remote server (not localhost) and pushing the application out, complete with commands for server setup and software configuration (like Apache).

0 comments voice your opinion now!
yii2 introduction tutorial programming series part1

Link: http://code.tutsplus.com/tutorials/programming-with-yii2-getting-started--cms-22440

Joshua Thijssen:
Deepdive into the symfony2 security component part 1
October 20, 2014 @ 10:26:33

On the latest post on his site Joshua Thijssen has kicked off a series taking a deep dive into the Symfony security component, a key piece in the security of Symfony-based applications. In this first part of the series he introduces the component and starts in on some of the features it offers.

Once in a while I like diving into code and see how things work under the hood. And as the symfony2 framework consists of many different components, bundles and bridges, there is a lot to discover. But ultimately, the code itself mostly isn't really as complex as it might seem from the outside world: just like a good magic trick, once unraveled, it all seems very simple and makes sense.

However, this is not true for one of those components: the security component. This black box full of dark magic doesn't like to give up its secrets, and after some (miserably) failed attempts, I am trying to unravel it once more in a few blog posts. Either we achieve complete victory, or fail yet again.. At this point, I will give both fair odds.

He starts off with an overview of the component, pointing out the two main things is handles: authentication and authorization. He also pulls in a few other things to do with security in Symfony to give a more complete, well rounded picture - the component itself, the security bundle and security bridges. He gets into a bit more detail about this last one and describes their specific use.

0 comments voice your opinion now!
symfony security bundle component overview deepdive series part1

Link: https://www.adayinthelifeof.nl/2014/10/19/deepdive-into-the-symfony2-security-component-part-1/

SitePoint PHP Blog:
Bitcoin and PHP with Coinbase's API - Basic Usage
October 07, 2014 @ 10:41:31

On the SitePoint PHP blog there's a recent post showing you how to combine PHP and the Coinbase API to add the ability to accept bitcoins as payment in your application. This is part one in a series of posts about making the connection and integrating it into the application.

Have you ever thought about selling your services in exchange for Bitcoins? It's not so strange - today, many big players are actually doing it. From OkCupid to KhanAcademy, even WordPress is accepting Bitcoin. Also, some countries are thinking about it as a currency. Today, we will see how to accept Bitcoin payments on your website/application in an easy way, with the Coinbase API (and its SDK).

He briefly explains what kind of services the Coinbase API provides and talks about some of the different integration methods they offer. While they do offer a "button" you can add to the site, this tutorial focuses on the PHP integration using their SDK. They help you get it installed and show how to use the Coinbase site to set up authentication and authorization handling. He helps you get an instance of the Coinbase object ready for use and shows how to use it to interact with your account. The SDK also allows you to create the same button as the Coinbase site does, just in a more programatic way.

0 comments voice your opinion now!
bitcoin api tutorial coinbase part1 series sdk interact

Link: http://www.sitepoint.com/bitcoin-php-coinbases-api-basic-usage/

Matthew Weier O'Phinney:
Deployment with Zend Server (Part 1 of 8)
August 27, 2014 @ 10:41:33

Matthew Weier O'Phinney has posted the first part of an eight part series he's writing about deploying applications with Zend Server. Zend Server is a product of Zend that provides an integrated platform for PHP-based applications, a self-contained environment making things easier to manage and enhance performance.

I manage a number of websites running on Zend Server, Zend's PHP application platform. I've started accumulating a number of patterns and tricks that make the deployments more successful, and which also allow me to do more advanced things such as setting up recurring jobs for the application, clearing page caches, and more.

His examples can be used with any of the Zend Server versions available, including the Development Edition that can be used for trial purposes. The remainder of the post is his first tip: using the zf-deploy tool to make deployment of your application simpler. He includes an example of a script he uses for the deployment (written in PHP) to ensure the environment is set up correctly.

0 comments voice your opinion now!
zendserver deployment tips series part1

Link: http://mwop.net/blog/2014-08-11-zend-server-deployment-part-1.html

SitePoint PHP Blog:
Build a New App with Laravel and EmberJS in Vagrant
August 25, 2014 @ 11:31:58

The SitePoint PHP blog has kicked off another series of posts today with part one of a series looking at building an application based on the Laravel PHP framework and EmberJS.

Nowadays, everything is turning into a web application. Even simple websites have a mobile app relying on a REST Api. Web applications are accessible everywhere - on a laptop, desktop, tablet, mobile, and recently on wearable devices like smartwatches. Everything is becoming smaller and faster - front ends are becoming separated from back ends, and only communicate with the server through APIs. In this series, we are going to create a photo uploading app. For the front-end, we will use EmberJs and Foundation 5. [...] For the back-end, we will use Laravel. The source code will be available per-part, and in final shape in the final part of this series.

They go with the Laravel Homestead virtual machine (and Vagrant) to make for a quick setup and stable environment. They help you get it all set up to push up to Heroku and get all needed dependencies, both frontend and backend, installed. They also walk you through the setup of the database, configuring the connection and deploying the application to production.

0 comments voice your opinion now!
tutorial emberjs vagrant laravel homestead application series part1

Link: http://www.sitepoint.com/build-new-app-laravel-emberjs-vagrant/

SitePoint PHP Blog:
PINQ - querify your datasets - introduction
August 21, 2014 @ 09:20:19

The SitePoint PHP blog has posted the first part of a new series they're releasing about querying your data with Pinq. It's a PHP-based query tool that provides a fluent interface for searching and traversing your data. In this first post of the series Taylor Ren introduces you to the library and shows some basic usage.

You may have heard of LINQ (Language-Integrated Query), a "set of features introduced in Visual Studio 2008 that extends powerful query capabilities to the language syntax of C# and Visual Basic". It provides necessary interfaces and syntax to perform various queries on a given dataset so that operations like filtering, sorting, grouping, aggregating, etc can be performed. PINQ (PHP Integrated Query) is "based off the .NET's Linq, and unifies querying across arrays/iterators and external data sources, in a single readable and concise fluent API".

He talks about normal searching (equals matching) and "faceted searching", narrowing down the results piece by piece until you find what you need. He gives an example with some sample database data and shows the results of a simple query with a price filter and grouped by author. He includes the code to make it happen (inside a simple Silex application) too. He then takes a deeper look at the LINQ queries and how related statements are handled.

0 comments voice your opinion now!
linq pinq query dataset tutorial introduction series part1

Link: http://www.sitepoint.com/pinq-querify-datasets-introduction/

Master Zend Framework:
Using Sessions In Zend Framework 2 - Part 1
April 29, 2014 @ 12:09:49

On his Master Zend Framework site today Matthew Setter has posted the first part of a series looking at working with sessions in Zend Framework 2 applications.

To help work around [the stateless nature of the language], PHP introduced the concept of sessions, which allows for storing information across requests. However, like most things, as application's have become more complex, the ability to interact with sessions in a way that matches the needs of the application has continued to grow. Gladly, in Zend Framework 2, a set of classes is available, which helps reduce the complexity of managing session information, whether that's interaction, configuration or backend storage, without placing too much distance between you and the underlying PHP implementation, or adding too much complexity in the process.

Using the ZF2Skeleton as a base, he shows you how to add session support to the overall project in a few simple steps:

  • Update Module.php to initialize the session
  • Create a new container & store some data
  • Retrieve it later

There's not too much code change involved, but the snippets to add/update are included. In the next part of the series, he'll look at validation, preventing hijacking and using different backend storage methods.

0 comments voice your opinion now!
zendframework2 session tutorial series part1 introduction

Link: http://www.masterzendframework.com/sessions/using-sessions-in-zend-framework-2-part-1


Community Events





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


community version opinion library release laravel list framework series conference composer podcast voicesoftheelephpant security artisanfiles tool interview introduction language symfony

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