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 Marzec, 2016

SitePoint PHP Blog: Crash Course into Continuous Testing with Sismo

SitePoint PHP Blog: Crash Course into Continuous Testing with Sismo

On the SitePoint PHP blog there’s a tutorial posted helping you get started with Sismo, a simple component that can help you with the continuous testing of your PHP applications. Sismo is a project from SensioLabs, the same group behind Symfony and Twig (and several other popular tools).

The PHP community started to adopt the testing culture relatively recently. Despite there being some debates on how to achieve this, nobody can argue the importance of having your code fully covered by tests. In this article, we’re going to explore a tool that will help you in a major part of the testing culture called continuous testing.

Sismo is a small component which you can easily integrate with your projects to make the process of continuous testing easier. Sismo’s main focus is to run your tests and send you status notifications.

They help you get the tool installed (either from GitHub or directly) and configure your project with a simple PHP file. They also include instructions on how to execute the tests for the project and an example of the resulting output. The tutorial then shows how to set up a project using the remote repository handling, setting up notifiers for failures, storing the build information and using it in a git hook.

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

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

SitePoint PHP Blog: Crash Course into Continuous Testing with Sismo

SitePoint PHP Blog: Crash Course into Continuous Testing with Sismo

On the SitePoint PHP blog there’s a tutorial posted helping you get started with Sismo, a simple component that can help you with the continuous testing of your PHP applications. Sismo is a project from SensioLabs, the same group behind Symfony and Twig (and several other popular tools).

The PHP community started to adopt the testing culture relatively recently. Despite there being some debates on how to achieve this, nobody can argue the importance of having your code fully covered by tests. In this article, we’re going to explore a tool that will help you in a major part of the testing culture called continuous testing.

Sismo is a small component which you can easily integrate with your projects to make the process of continuous testing easier. Sismo’s main focus is to run your tests and send you status notifications.

They help you get the tool installed (either from GitHub or directly) and configure your project with a simple PHP file. They also include instructions on how to execute the tests for the project and an example of the resulting output. The tutorial then shows how to set up a project using the remote repository handling, setting up notifiers for failures, storing the build information and using it in a git hook.

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

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

Voices of the ElePHPant: Interview with Chris Cornutt (#2)

Voices of the ElePHPant: Interview with Chris Cornutt (#2)

The Voices of the ElePHPant podcast has posted their first video podcast recording taken live at php[world] 2015 with Chris Cornutt, organizer of the Dallas PHP user group and the Lone Star PHP Conference.

Cal and Chris talk about the Capture the Flag security competition he hosted at the php[world] conference to give attendees "hands-on" experience with security testing. They also talk about a recent job change Chris has had to work for Pardot as an application security developer. The episode finishes with Cal and Chris talking about their "news posting" history today between PHPDeveloper.org and the Zend Developer Zone.

You can listen to this latest episode either using the in-page audio player or the video of the live recording via YouTube. If you enjoy the episode, be sure to subscribe to their feed or follow them on Twitter to get the latest updates when new shows are released.

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

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

Voices of the ElePHPant: Interview with Chris Cornutt (#2)

Voices of the ElePHPant: Interview with Chris Cornutt (#2)

The Voices of the ElePHPant podcast has posted their first video podcast recording taken live at php[world] 2015 with Chris Cornutt, organizer of the Dallas PHP user group and the Lone Star PHP Conference.

Cal and Chris talk about the Capture the Flag security competition he hosted at the php[world] conference to give attendees "hands-on" experience with security testing. They also talk about a recent job change Chris has had to work for Pardot as an application security developer. The episode finishes with Cal and Chris talking about their "news posting" history today between PHPDeveloper.org and the Zend Developer Zone.

You can listen to this latest episode either using the in-page audio player or the video of the live recording via YouTube. If you enjoy the episode, be sure to subscribe to their feed or follow them on Twitter to get the latest updates when new shows are released.

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

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

Voices of the ElePHPant: Interview with Chris Cornutt (#2)

Voices of the ElePHPant: Interview with Chris Cornutt (#2)

The Voices of the ElePHPant podcast has posted their first video podcast recording taken live at php[world] 2015 with Chris Cornutt, organizer of the Dallas PHP user group and the Lone Star PHP Conference.

Cal and Chris talk about the Capture the Flag security competition he hosted at the php[world] conference to give attendees "hands-on" experience with security testing. They also talk about a recent job change Chris has had to work for Pardot as an application security developer. The episode finishes with Cal and Chris talking about their "news posting" history today between PHPDeveloper.org and the Zend Developer Zone.

You can listen to this latest episode either using the in-page audio player or the video of the live recording via YouTube. If you enjoy the episode, be sure to subscribe to their feed or follow them on Twitter to get the latest updates when new shows are released.

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

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

Joe Ferguson: Validating and Releasing Packages with Producer

Joe Ferguson: Validating and Releasing Packages with Producer

In this post to his site Joe Ferguson takes a look at the recently announced Producer package that helps with ensuring your packages are "high quality" and makes the release process easier.

Producer is a pretty neat project that wants you to release higher quality packages. Well, actually (sorry) it’s “a command-line tool to validate, and then release, your PHP library package. It supports Git and Mercurial for version control, as well as Github, Gitlab, and Bitbucket for remote origins.”

[...] I was immediately interested in this tool because the Phergie project I manage (with other awesome developers) contains a number of individual packages. [...] Phergie packages are pretty solid. We have Travis CI running our tests across multiple PHP versions, we have hours and hours into these packages. But I wanted to take it to the next level, step up our game so to speak. In order to help raise our quality control on our packages I needed a producer.

He uses a Phergie plugin he developed as an example to try out Producer. He shows the results of the validate call with Producer and the few issues it reports. He shares the updates he made to the code (documentation) and the addition of a CHANGES.md file to the repository.He then uses Producer to push out a new version of the package using the release command (v3.0.1) and the resulting output of the command.

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

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

Symfony Finland: Angular 2 Universal Rendering Coming to Symfony and Twig

Symfony Finland: Angular 2 Universal Rendering Coming to Symfony and Twig

As is mentioned in this new post on the Symfony Finland site, the functionality allowing the Twig templating engine to perform Angular 2 Universal Rendering.

Angular is a household name when it comes to JavaScript frameworks. They’ve been going through a major transition since the announcement of Angular 2. In the latest development Angular 2 will be getting PHP / Twig support for isomorphic rendering.

[...] So the Angular and the Drupal development teams have started working together to bring Universal Rendering to PHP and Twig. The details remain murky on how exactly this will be implemented (using a Node.js server or a PHP library), but a PHP library (not an extension written in C) would be the easiest option for developers.

He points out that there’s also a chance that the result could be coupled to Drupal (at least at first) but hopes are that it will end up as a generic component usable in any system using Twig. The post also includes links where you can find out more information about the topic of "Isomorphic Rendering" too.

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

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

Community News: Latest PECL Releases (03.29.2016)

Community News: Latest PECL Releases (03.29.2016)

Latest PECL Releases:

  • APM 2.1.0
    Added:

    • Support for PHP 7
    • collecting HTTP method

    Improved:

    • Better coexistence with Xdebug
  • v8js 0.6.2
    - Pass back V8Object instances, don’t re-wrap
    - Retain object identity on ‘return $this’
    - Retain object identity on JS-side ‘return this’

  • v8js 0.6.1
    - Fix configuration on MacOS platform
  • timezonedb 2016.3
    Updated to version 2016.3 (2016c)
  • eio 2.0.0RC3
    Fixed #4: linker issue on aarch64

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

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

SitePoint PHP Blog: Drunk with the Power of Composer Plugins

SitePoint PHP Blog: Drunk with the Power of Composer Plugins

The SitePoint PHP blog has a new tutorial for the Composer users out there talking about Composer plugin development and how they can add functionality to this already powerful tool.

Composer is the sharpest tool in the toolbox of the modern PHP developer. The days of manual dependency management are in the distant past, and in their place we have wonderful things like Semver. Things that help us sleep at night, because we can update our dependencies without smashing rocks together.

[...] Even though we use Composer so frequently, there’s not a lot of shared knowledge about how to extend it. [...] Yet, recent changes have made it much easier to develop Composer plugins. [...] So, today I thought we would explore the possibilities of Composer plugin development, and create a fresh bit of documentation as we go.

He walks you through the creation of a simple plugin: one that tracks users and the dependencies they require. He shows you how to create the initial plugin boilerplate and the creation of the addDependencies and activate methods. These grab the dependencies being added and send the information off to a remote site.

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

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

Evert Pot: Drop ‘public’ not ‘var’!

Evert Pot: Drop ‘public’ not ‘var’!

In a recent RFC that’s been proposed and is now up for voting, the suggestion has been made to drop the var keyword in PHP 7.1 and completely remove it in PHP 8 (made a bit redundant buy the public keyword in classes). Evert Pot, however, disagrees and suggests dropping public instead.

A PHP RFC vote has started to deprecate the var keyword in PHP 7.1 and remove it in PHP 8. At the time of writing, there 23 who say it should be removed, and 18 who say it should not. [...] I’d like to offer a different opinion: I think people should be using var instead of public. I realize that this is as controversial as tabs vs. spaces (as in: it doesn’t really matter but conjures heated discussions), but hear me out!

He goes through an example on one of his own projects, showing how he’s mostly removed the public level of exposure from his development (using final and statics instead). He then suggests three common thoughts he sees people having being in favor of dropping var versus public:

  • #1: Everyone doing the same thing is good
  • #2: It’s ugly!
  • #3: The public keyword is useful to convey intent

He also points to one place where he does see the need for a public but also suggests that in that case var would do juts fine too.

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

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