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 Styczeń, 2014

Site News: Popular Posts for the Week of 01.31.2014

Site News: Popular Posts for the Week of 01.31.2014Popular posts from PHPDeveloper.org for the past week:

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

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

Site News: Popular Posts for the Week of 01.31.2014

Site News: Popular Posts for the Week of 01.31.2014Popular posts from PHPDeveloper.org for the past week:

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

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

Inviqa techPortal: Manage Project Dependencies with Bower and Composer

Inviqa techPortal: Manage Project Dependencies with Bower and Composer

On the Inviqa techPortal there’s a new tutorial showing you how to manage your dependencies with the help of both Composer and Bower (a Javascript package manager).

As developers, most of us rely on third-party libraries as part of our web applications. PHP developers manage their dependencies with Composer, but how can you manage your client-side dependencies? Most projects start with one core JavaScript library (e.g. jQuery) and one or two plugins, but over time the application grows, and the list of JavaScript libraries grows as well. In this situation, Bower can help you, and in this article you will see how to integrate it into your own project.

You’ll need Node installed to use Bower, but the installation process is simple – just one call to load it via npm. They help you get the configuration set up and how to specify its dependencies. Anyone familiar with how Composer works should feel right at home using a similar JSON structure. With that in place, you can move on to the next step, integrating it with Composer. In the Composer configuration, there’s a setting for “scripts” that can be run before the install command is executed and some after the install is complete. This is where they call “bower install” to have it install the needed Javascript-based dependencies.

Link: http://techportal.inviqa.com/2014/01/29/manage-project-dependencies-with-bower-and-composer/
Source: http://www.phpdeveloper.org/news/20718

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

Inviqa techPortal: Manage Project Dependencies with Bower and Composer

Inviqa techPortal: Manage Project Dependencies with Bower and Composer

On the Inviqa techPortal there’s a new tutorial showing you how to manage your dependencies with the help of both Composer and Bower (a Javascript package manager).

As developers, most of us rely on third-party libraries as part of our web applications. PHP developers manage their dependencies with Composer, but how can you manage your client-side dependencies? Most projects start with one core JavaScript library (e.g. jQuery) and one or two plugins, but over time the application grows, and the list of JavaScript libraries grows as well. In this situation, Bower can help you, and in this article you will see how to integrate it into your own project.

You’ll need Node installed to use Bower, but the installation process is simple – just one call to load it via npm. They help you get the configuration set up and how to specify its dependencies. Anyone familiar with how Composer works should feel right at home using a similar JSON structure. With that in place, you can move on to the next step, integrating it with Composer. In the Composer configuration, there’s a setting for “scripts” that can be run before the install command is executed and some after the install is complete. This is where they call “bower install” to have it install the needed Javascript-based dependencies.

Link: http://techportal.inviqa.com/2014/01/29/manage-project-dependencies-with-bower-and-composer/
Source: http://www.phpdeveloper.org/news/20718

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

Inviqa techPortal: Manage Project Dependencies with Bower and Composer

Inviqa techPortal: Manage Project Dependencies with Bower and Composer

On the Inviqa techPortal there’s a new tutorial showing you how to manage your dependencies with the help of both Composer and Bower (a Javascript package manager).

As developers, most of us rely on third-party libraries as part of our web applications. PHP developers manage their dependencies with Composer, but how can you manage your client-side dependencies? Most projects start with one core JavaScript library (e.g. jQuery) and one or two plugins, but over time the application grows, and the list of JavaScript libraries grows as well. In this situation, Bower can help you, and in this article you will see how to integrate it into your own project.

You’ll need Node installed to use Bower, but the installation process is simple – just one call to load it via npm. They help you get the configuration set up and how to specify its dependencies. Anyone familiar with how Composer works should feel right at home using a similar JSON structure. With that in place, you can move on to the next step, integrating it with Composer. In the Composer configuration, there’s a setting for “scripts” that can be run before the install command is executed and some after the install is complete. This is where they call “bower install” to have it install the needed Javascript-based dependencies.

Link: http://techportal.inviqa.com/2014/01/29/manage-project-dependencies-with-bower-and-composer/
Source: http://www.phpdeveloper.org/news/20718

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

Inviqa techPortal: Manage Project Dependencies with Bower and Composer

Inviqa techPortal: Manage Project Dependencies with Bower and Composer

On the Inviqa techPortal there’s a new tutorial showing you how to manage your dependencies with the help of both Composer and Bower (a Javascript package manager).

As developers, most of us rely on third-party libraries as part of our web applications. PHP developers manage their dependencies with Composer, but how can you manage your client-side dependencies? Most projects start with one core JavaScript library (e.g. jQuery) and one or two plugins, but over time the application grows, and the list of JavaScript libraries grows as well. In this situation, Bower can help you, and in this article you will see how to integrate it into your own project.

You’ll need Node installed to use Bower, but the installation process is simple – just one call to load it via npm. They help you get the configuration set up and how to specify its dependencies. Anyone familiar with how Composer works should feel right at home using a similar JSON structure. With that in place, you can move on to the next step, integrating it with Composer. In the Composer configuration, there’s a setting for “scripts” that can be run before the install command is executed and some after the install is complete. This is where they call “bower install” to have it install the needed Javascript-based dependencies.

Link: http://techportal.inviqa.com/2014/01/29/manage-project-dependencies-with-bower-and-composer/
Source: http://www.phpdeveloper.org/news/20718

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

MaltBlue.com: Easy Setter Injection in Zend Framework 2

MaltBlue.com: Easy Setter Injection in Zend Framework 2

Matthew Setter has a new post today looking at setter injection of dependencies in a Zend Framework v2 based application. He shows how to do it via ServiceManager-aware interfaces.

For configuring objects, reused throughout the application, I’ve found it to be nothing short of amazing. With next to no code, one Module configuration setting, along with the magic of OOP, classes are suitably initialized throughout the application, without any hands-on configuration on my part. Whilst Zend Framework 2 is great without this. When you start using setter injection, it becomes so much more. In today’s post, I’ll take you through an example which uses setter injection to ensure that the AuthService, or authenticated user object is always available to a class and any of its descendants.

He walks you through a basic implementation, showing the creation of the “AuthAwareInterface” interface class and an implementation of it, the “CacheableTable”. In the “CacheableTable” there’s a setter and getter for the currently authenticated user. Using these he’s able to configure the ServiceManager to get the AuthService instance from the service locator and inject it into the class. He also includes a word of warning to be careful with the injection you do use, pointing out that it can lead to difficult to track bugs and issues down the line.

Link: http://www.maltblue.com/zend-framework/easy-setter-injection-in-zend-framework-2
Source: http://www.phpdeveloper.org/news/20717

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

MaltBlue.com: Easy Setter Injection in Zend Framework 2

MaltBlue.com: Easy Setter Injection in Zend Framework 2

Matthew Setter has a new post today looking at setter injection of dependencies in a Zend Framework v2 based application. He shows how to do it via ServiceManager-aware interfaces.

For configuring objects, reused throughout the application, I’ve found it to be nothing short of amazing. With next to no code, one Module configuration setting, along with the magic of OOP, classes are suitably initialized throughout the application, without any hands-on configuration on my part. Whilst Zend Framework 2 is great without this. When you start using setter injection, it becomes so much more. In today’s post, I’ll take you through an example which uses setter injection to ensure that the AuthService, or authenticated user object is always available to a class and any of its descendants.

He walks you through a basic implementation, showing the creation of the “AuthAwareInterface” interface class and an implementation of it, the “CacheableTable”. In the “CacheableTable” there’s a setter and getter for the currently authenticated user. Using these he’s able to configure the ServiceManager to get the AuthService instance from the service locator and inject it into the class. He also includes a word of warning to be careful with the injection you do use, pointing out that it can lead to difficult to track bugs and issues down the line.

Link: http://www.maltblue.com/zend-framework/easy-setter-injection-in-zend-framework-2
Source: http://www.phpdeveloper.org/news/20717

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

SitePoint PHP Blog: Arbitrary Precision and Big Numbers in PHP

SitePoint PHP Blog: Arbitrary Precision and Big Numbers in PHP

The SitePoint PHP blog has a new post by Taylor Ren looks at big numbers in PHP and the functionality it has to handle arbitrary precision via three modules – GMP. BC Math and php-bignumbers.

In this article, we will review the PHP capability to provide arbitrary precision number calculation / big integer calculation by reviewing 3 PHP modules: GMP, BC Math and php-bignumbers. We will demonstrate two real-world examples to see the powers/limitations of each. The first one will be calculating PI to arbitrary precision – well, for the sake of the article, we will restrict the precision, say, to 1000 digits; the second will be a simple demonstration on RSA encryption/decryption.

He briefly looks at how to get the tools installed (via at-get or Composer) and a sample script to ensure that they’re all included correctly and working. He includes a comparison between the three libraries, listing both strengths and weaknesses relative to the others. He then gets a bit more in-depth and shows how to calculate PI with each option (code is on GitHub) and the results of the benchmarking. He also includes a second example of calculating the RSA algorithm based on their process.

Link: http://www.sitepoint.com/arbitrary-precision-big-numbers-php/
Source: http://www.phpdeveloper.org/news/20716

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

SitePoint PHP Blog: Arbitrary Precision and Big Numbers in PHP

SitePoint PHP Blog: Arbitrary Precision and Big Numbers in PHP

The SitePoint PHP blog has a new post by Taylor Ren looks at big numbers in PHP and the functionality it has to handle arbitrary precision via three modules – GMP. BC Math and php-bignumbers.

In this article, we will review the PHP capability to provide arbitrary precision number calculation / big integer calculation by reviewing 3 PHP modules: GMP, BC Math and php-bignumbers. We will demonstrate two real-world examples to see the powers/limitations of each. The first one will be calculating PI to arbitrary precision – well, for the sake of the article, we will restrict the precision, say, to 1000 digits; the second will be a simple demonstration on RSA encryption/decryption.

He briefly looks at how to get the tools installed (via at-get or Composer) and a sample script to ensure that they’re all included correctly and working. He includes a comparison between the three libraries, listing both strengths and weaknesses relative to the others. He then gets a bit more in-depth and shows how to calculate PI with each option (code is on GitHub) and the results of the benchmarking. He also includes a second example of calculating the RSA algorithm based on their process.

Link: http://www.sitepoint.com/arbitrary-precision-big-numbers-php/
Source: http://www.phpdeveloper.org/news/20716

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