Jeśli jesteś właścicielem tej strony, możesz wyłączyć reklamę poniżej zmieniając pakiet na PRO lub VIP w panelu naszego hostingu już od 4zł!

Archive for Luty, 2016

Sound of Symfony Podcast: Episode 12 – Building a stronger community

Sound of Symfony Podcast: Episode 12 – Building a stronger community

The Sound of Symfony podcast, with hosts Magnus Nordlander and Tobias Nyholm, has posted their latest episode: Episode #12 – [Building a stronger community](Episode 12 – Building a stronger community).

This time we’re talking about the Symfony Community, how we can make it better, and what we can learn from other communities.

Other topics mentioned in this episode include:

You can listen to this latest episode either through the in-page audio player or by downloading the show directly. If you enjoy the show, be sure to subscribe to their feed to get the latest shows as they’re released.

Source: http://www.phpdeveloper.org/news/23711

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

Sound of Symfony Podcast: Episode 12 – Building a stronger community

Sound of Symfony Podcast: Episode 12 – Building a stronger community

The Sound of Symfony podcast, with hosts Magnus Nordlander and Tobias Nyholm, has posted their latest episode: Episode #12 – [Building a stronger community](Episode 12 – Building a stronger community).

This time we’re talking about the Symfony Community, how we can make it better, and what we can learn from other communities.

Other topics mentioned in this episode include:

You can listen to this latest episode either through the in-page audio player or by downloading the show directly. If you enjoy the show, be sure to subscribe to their feed to get the latest shows as they’re released.

Source: http://www.phpdeveloper.org/news/23711

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

Joeri Timmermans: Testing drag and drop with Behat and Guzzle

Joeri Timmermans: Testing drag and drop with Behat and Guzzle

Joeri Timmermans has posted a tutorial to his site showing how you can test drag-and-drop functionality with a combination of the Behat BDD testing tool and the Guzzle HTTP library.

As you could see in previous posts I’m working on a large application for Intracto where they want a lot of fancy visuals and this turned into a mess when it came to write behat tests. This post will help you test position moving with drag and drop.

In his case he was working with a chapter layout that allows for the rearranging of chapters to update their order. The process is then broken up into a few different steps:

  • Creating a new context feature for Behat (based on this example)
  • Making a custom action that makes it easier to move the chapter entries around by just providing positions
  • Calling the move in the Behat test itself

The tricky part here is that the actual test is made for the behavior but the behavior itself is making an API call to rearrange the pages. The test is making this same call and evaluating the result. It’s not actually interacting with the page as you might be able to do with something like PhantomJs however.

Source: http://www.phpdeveloper.org/news/23710

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

Joeri Timmermans: Testing drag and drop with Behat and Guzzle

Joeri Timmermans: Testing drag and drop with Behat and Guzzle

Joeri Timmermans has posted a tutorial to his site showing how you can test drag-and-drop functionality with a combination of the Behat BDD testing tool and the Guzzle HTTP library.

As you could see in previous posts I’m working on a large application for Intracto where they want a lot of fancy visuals and this turned into a mess when it came to write behat tests. This post will help you test position moving with drag and drop.

In his case he was working with a chapter layout that allows for the rearranging of chapters to update their order. The process is then broken up into a few different steps:

  • Creating a new context feature for Behat (based on this example)
  • Making a custom action that makes it easier to move the chapter entries around by just providing positions
  • Calling the move in the Behat test itself

The tricky part here is that the actual test is made for the behavior but the behavior itself is making an API call to rearrange the pages. The test is making this same call and evaluating the result. It’s not actually interacting with the page as you might be able to do with something like PhantomJs however.

Source: http://www.phpdeveloper.org/news/23710

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

Joeri Timmermans: Testing drag and drop with Behat and Guzzle

Joeri Timmermans: Testing drag and drop with Behat and Guzzle

Joeri Timmermans has posted a tutorial to his site showing how you can test drag-and-drop functionality with a combination of the Behat BDD testing tool and the Guzzle HTTP library.

As you could see in previous posts I’m working on a large application for Intracto where they want a lot of fancy visuals and this turned into a mess when it came to write behat tests. This post will help you test position moving with drag and drop.

In his case he was working with a chapter layout that allows for the rearranging of chapters to update their order. The process is then broken up into a few different steps:

  • Creating a new context feature for Behat (based on this example)
  • Making a custom action that makes it easier to move the chapter entries around by just providing positions
  • Calling the move in the Behat test itself

The tricky part here is that the actual test is made for the behavior but the behavior itself is making an API call to rearrange the pages. The test is making this same call and evaluating the result. It’s not actually interacting with the page as you might be able to do with something like PhantomJs however.

Source: http://www.phpdeveloper.org/news/23710

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

SitePoint PHP Blog: Websockets in Your Synchronous Site

SitePoint PHP Blog: Websockets in Your Synchronous Site

The SitePoint PHP blog has a new tutorial from Christopher Pitt showing you how to integrate websockets into your application for asynchronous, real-time functionality. His method makes use of a service called Socketize (with a free tier available).

Asynchronous architecture is common in other programming languages, but it’s only just finding its feet in PHP. The trouble is that this new architecture comes with a cost.

I don’t talk about that cost enough. [...] When I recommend frameworks like Icicle, ReactPHP, and AMPHP, the obvious place to start with them is to create something new. [...] It takes a lot of work to integrate new, asynchronous features into existing applications. Often there are good reasons and great benefits, but a rewrite is always a hard-sell. [...] I’m going to show you a Sockets-as-a-Service service, called Socketize.

He walks you through the setup of the code and account to create a simple CRUD (create, read, update, delete) system for a deck of cards. He starts with a simple synchronous API spitting back JSON of the card data. Then he creates the frontend client (simple Javascript) to fetch the data and append the values to the page. Next comes the asynchronous handling – he shows the creation of the Socketize account, setting up a new application (with keys) and making use of the SocketizeJavascript client to create the websocket and hook it all together.

Source: http://www.phpdeveloper.org/news/23709

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

Rob Allen: Improved error handling in Slim 3.2.0

Rob Allen: Improved error handling in Slim 3.2.0

In this recent post to his site Rob Allen, a developer with the Slim framework project, covers some of the improvements around error handling in the latest version of the framework, v3.2.0.

We released Slim 3.2.0 yesterday which includes a number of minor bug fixes since 3.1.0 and also a few nice improvements around the way we handle errors.

He talks about the previous error handling (suppressing them in favor of a bland error page) and how v3.2.0 changes this by writing them to the error log by default. He also talks about changes around the addition of a PHP 7 error handler that works with the PHP 7 Error exception types and functions the same way as the default Exception handler.

Source: http://www.phpdeveloper.org/news/23707

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

Full Stack Radio: 36: Jason McCreary – Building Laravel Shift

Full Stack Radio: 36: Jason McCreary – Building Laravel Shift

The Full Stack Radio podcast has posted their latest episode interviewing Jason McCreary about the Laravel Shift service – a tool that helps you upgrade your Laravel applications more automatically and keep them up to date. It’s a commercial service, though, and not an open source tool but there is a demo pull request you can see to get an idea of how it all works.

In this episode, Adam talks to Jason McCreary about building Shift, a tool that automates upgrading your application between framework versions.

Other topics mentioned in the episode also include PocketBracket, Laravel Cashier and the abstract syntax tree functionality (added to PHP in PHP 7.0). You can listen to this latest episode either through the in-page audio player or by downloading the mp3 directly. Be sure to subscribe to their feed if you enjoy the show and want to catch future episodes as they’re released.

Source: http://www.phpdeveloper.org/news/23706

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

Site News: Popular Posts for This Week (02.26.2016)

Site News: Popular Posts for This Week (02.26.2016)

Popular posts from PHPDeveloper.org for the past week:

Source: http://www.phpdeveloper.org/news/23708

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

php[architect]: Book Release: Integrating Web Services with OAuth and PHP

php[architect]: Book Release: Integrating Web Services with OAuth and PHP

php|architect has officially announced the release of their latest book: Integrating Web Services with OAuth and PHP from author and PHP community member Matt Frost.

Modern web applications are no longer standalone, monolithic codebases. Instead, they are expected to integrate with external, 3rd party applications to allow users to tap into new features, integrate with their social networks, and to easily migrate their data between systems. Many services afford these integrations by building web services that use the OAuth standard to authenticate users and allow “secure delegated access” on their behalf.

The book covers both of the major versions of OAuth currently in use (v1 and v2), how they differ and provides working PHP examples of both the client and server sides of the functionality. If you’re interested you can "try before you buy" with an excerpt from the book to get a feel for the writing style and content. You can get more information and pick up a copy of your own directly from the php[architect] site.

Source: http://www.phpdeveloper.org/news/23705

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>