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 Sierpień, 2016

SitePoint PHP Blog: Local Composer for Everyone! A Conference-Friendly Satis Setup

SitePoint PHP Blog: Local Composer for Everyone! A Conference-Friendly Satis Setup

On the SitePoint PHP blog editor Bruno Skvorc has posted a tutorial showing you how to set up the Packagist alternative, Satis, in a local network configuration instead of requiring users to still access the external web.

While preparing my technical materials for WebSummerCamp, I realized my workshop would rely on a fairly stable internet connection, as we’d have a lot of ground to cover and a lot of packages to install. Rather than rely on the gods of live demos, or pre-installing everything and ruining the experience, I picked another route.

In this post, I’ll show you how to set up a local Satis instance and have it host the packages over the network it’s currently on, so that everyone who’s also connected to it can put the address into composer.json as a custom repository source, and retrieve all packages from your machine locally – no internet connection required!

He then shows you how to set up the system on a Homestead Improved VM locally, cloning Satis inside of it. He includes an example of the configuration of his required packages and how to build the local repository using this setup. Then, using the built-in PHP web server, he shows the result of the setup and how to access it from other machines. Finally, a few updates are required to the user’s composer.json to use the local versions instead of the normal remote connection for the package downloads.

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

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

SitePoint PHP Blog: Local Composer for Everyone! A Conference-Friendly Satis Setup

SitePoint PHP Blog: Local Composer for Everyone! A Conference-Friendly Satis Setup

On the SitePoint PHP blog editor Bruno Skvorc has posted a tutorial showing you how to set up the Packagist alternative, Satis, in a local network configuration instead of requiring users to still access the external web.

While preparing my technical materials for WebSummerCamp, I realized my workshop would rely on a fairly stable internet connection, as we’d have a lot of ground to cover and a lot of packages to install. Rather than rely on the gods of live demos, or pre-installing everything and ruining the experience, I picked another route.

In this post, I’ll show you how to set up a local Satis instance and have it host the packages over the network it’s currently on, so that everyone who’s also connected to it can put the address into composer.json as a custom repository source, and retrieve all packages from your machine locally – no internet connection required!

He then shows you how to set up the system on a Homestead Improved VM locally, cloning Satis inside of it. He includes an example of the configuration of his required packages and how to build the local repository using this setup. Then, using the built-in PHP web server, he shows the result of the setup and how to access it from other machines. Finally, a few updates are required to the user’s composer.json to use the local versions instead of the normal remote connection for the package downloads.

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

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

Laravel News: Controller Construct Session Changes in Laravel 5.3

Laravel News: Controller Construct Session Changes in Laravel 5.3

On the Laravel News site there’s a post detailing some of the updates made to session and controller handling in v5.3 of the framework. It mostly revolves around how the middleware handling changed on each request from v5.2.

Back in laravel 5.2, a developer was able to interact with the session directly in a controller constructor. However, this has changed in laravel 5.3.

The difference between how the 5.3 & 5.2 handle an incoming request is that in 5.2 the request goes through 3 pipelines: global, route and controller [...] In 5.3 the request goes through only 2 Pipelines: global and route/controller (in one pipeline).

The post includes a quote from Taylor Otwell (creator and lead developer of the framework) about why this change was made. Then it shows an alternative to directly accessing this session information in your controllers: a Closure-based middleware in the constructor to execute your checks.

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

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

Laravel News: Controller Construct Session Changes in Laravel 5.3

Laravel News: Controller Construct Session Changes in Laravel 5.3

On the Laravel News site there’s a post detailing some of the updates made to session and controller handling in v5.3 of the framework. It mostly revolves around how the middleware handling changed on each request from v5.2.

Back in laravel 5.2, a developer was able to interact with the session directly in a controller constructor. However, this has changed in laravel 5.3.

The difference between how the 5.3 & 5.2 handle an incoming request is that in 5.2 the request goes through 3 pipelines: global, route and controller [...] In 5.3 the request goes through only 2 Pipelines: global and route/controller (in one pipeline).

The post includes a quote from Taylor Otwell (creator and lead developer of the framework) about why this change was made. Then it shows an alternative to directly accessing this session information in your controllers: a Closure-based middleware in the constructor to execute your checks.

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

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

Laravel News: Controller Construct Session Changes in Laravel 5.3

Laravel News: Controller Construct Session Changes in Laravel 5.3

On the Laravel News site there’s a post detailing some of the updates made to session and controller handling in v5.3 of the framework. It mostly revolves around how the middleware handling changed on each request from v5.2.

Back in laravel 5.2, a developer was able to interact with the session directly in a controller constructor. However, this has changed in laravel 5.3.

The difference between how the 5.3 & 5.2 handle an incoming request is that in 5.2 the request goes through 3 pipelines: global, route and controller [...] In 5.3 the request goes through only 2 Pipelines: global and route/controller (in one pipeline).

The post includes a quote from Taylor Otwell (creator and lead developer of the framework) about why this change was made. Then it shows an alternative to directly accessing this session information in your controllers: a Closure-based middleware in the constructor to execute your checks.

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

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

Laravel News: Controller Construct Session Changes in Laravel 5.3

Laravel News: Controller Construct Session Changes in Laravel 5.3

On the Laravel News site there’s a post detailing some of the updates made to session and controller handling in v5.3 of the framework. It mostly revolves around how the middleware handling changed on each request from v5.2.

Back in laravel 5.2, a developer was able to interact with the session directly in a controller constructor. However, this has changed in laravel 5.3.

The difference between how the 5.3 & 5.2 handle an incoming request is that in 5.2 the request goes through 3 pipelines: global, route and controller [...] In 5.3 the request goes through only 2 Pipelines: global and route/controller (in one pipeline).

The post includes a quote from Taylor Otwell (creator and lead developer of the framework) about why this change was made. Then it shows an alternative to directly accessing this session information in your controllers: a Closure-based middleware in the constructor to execute your checks.

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

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

Voices of the ElePHPant: Interview with Colin O’Dell

Voices of the ElePHPant: Interview with Colin O’Dell

The Voices of the ElePHPant podcast has posted another episode in its series of video interviews with members of the PHP community from this year’s php[tek] conference. In this latest show how Cal Evans talks with Colin O’Dell.

They talk about speaking at conferences, how *Colin* got started in his own speaking. They also cover the presentation *Colin* gave at php[tek] this year covering security related to security, learning about it from the perspective of a hacker rather than a developer. *Colin* also shares what he sees as one of the largest issues developers forget about: trusting data too much.

You can catch this latest episode either through the in-page audio/video player or you can download the mp3 to listen at your leisure. If you enjoy the show be sure to subscribe to their feed and follow them on Twitter.

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

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

Voices of the ElePHPant: Interview with Colin O’Dell

Voices of the ElePHPant: Interview with Colin O’Dell

The Voices of the ElePHPant podcast has posted another episode in its series of video interviews with members of the PHP community from this year’s php[tek] conference. In this latest show how Cal Evans talks with Colin O’Dell.

They talk about speaking at conferences, how *Colin* got started in his own speaking. They also cover the presentation *Colin* gave at php[tek] this year covering security related to security, learning about it from the perspective of a hacker rather than a developer. *Colin* also shares what he sees as one of the largest issues developers forget about: trusting data too much.

You can catch this latest episode either through the in-page audio/video player or you can download the mp3 to listen at your leisure. If you enjoy the show be sure to subscribe to their feed and follow them on Twitter.

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

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

Community News: Latest PECL Releases (08.30.2016)

Community News: Latest PECL Releases (08.30.2016)

Latest PECL Releases:

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

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

Community News: Latest PECL Releases (08.30.2016)

Community News: Latest PECL Releases (08.30.2016)

Latest PECL Releases:

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

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