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

VG Tech: Swagger Docs in ZF2 with Examples – Part 1: Setup and Annotations

VG Tech: Swagger Docs in ZF2 with Examples – Part 1: Setup and Annotations

The VG Tech blog has posted the first part of a series they’re doing about Zend Framework 2 and Swagger, the auto-generating documentation project for APIs. In this first part of the series, they go through some setup and show the use of annotations to define the Swagger output.

So everyone is building APIs now – parsing and outputting JSON is not that hard. Some people even build truly RESTful APIs, or something not to far from that. Before, when building APIs was about SOAP with XML schemas and WSDL specifications, people spent so much time building their APIs that they had the time to think. Now, building an API is so easy and fast that the documentation is often suffering. [...] Swagger is a popular project providing auto generated API docs based on a service specification. This spec is based on annotation comments in the controllers and models, giving the developer a fairly easy, and close to the code way of keeping the API docs up to date.

He walks you through the process to clone and setup the Zend Framework 2 project first, then pull in the “outeredge/swagger-module” with Composer. This package provides the tools to generate Swagger output from annotations in the PHP code. He also shows you how to set up the Swagger UI project (wordnik/swagger-ui). Finally, he gets into the code examples, showing how to annotate models and use partials.

Link: http://tech.vg.no/2014/02/24/swagger-docs-in-zf2-with-examples-part-1-setup-and-annotations/
Source: http://www.phpdeveloper.org/news/20830

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

VG Tech: Swagger Docs in ZF2 with Examples – Part 1: Setup and Annotations

VG Tech: Swagger Docs in ZF2 with Examples – Part 1: Setup and Annotations

The VG Tech blog has posted the first part of a series they’re doing about Zend Framework 2 and Swagger, the auto-generating documentation project for APIs. In this first part of the series, they go through some setup and show the use of annotations to define the Swagger output.

So everyone is building APIs now – parsing and outputting JSON is not that hard. Some people even build truly RESTful APIs, or something not to far from that. Before, when building APIs was about SOAP with XML schemas and WSDL specifications, people spent so much time building their APIs that they had the time to think. Now, building an API is so easy and fast that the documentation is often suffering. [...] Swagger is a popular project providing auto generated API docs based on a service specification. This spec is based on annotation comments in the controllers and models, giving the developer a fairly easy, and close to the code way of keeping the API docs up to date.

He walks you through the process to clone and setup the Zend Framework 2 project first, then pull in the “outeredge/swagger-module” with Composer. This package provides the tools to generate Swagger output from annotations in the PHP code. He also shows you how to set up the Swagger UI project (wordnik/swagger-ui). Finally, he gets into the code examples, showing how to annotate models and use partials.

Link: http://tech.vg.no/2014/02/24/swagger-docs-in-zf2-with-examples-part-1-setup-and-annotations/
Source: http://www.phpdeveloper.org/news/20830

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

PHP Town Hall Podcast: Episode 19: Episode 19: Jeffrey Way, Laracasts and BDFLs

PHP Town Hall Podcast: Episode 19: Episode 19: Jeffrey Way, Laracasts and BDFLs

The PHP Town Hall podcast has released their latest episode today – Episode #19 with special guest Jeffrey Way of the Laravel community.

Well known PHP/Laravel nice-guy Jeffrey Way from NetTuts and Laracasts joins regular guest Zack Kitzmiller to discuss the wonderful world of Laravel once again. This time the discussion focuses on some of the silly complaints people have with an otherwise wonderful system, and on the reusability of its packages.

You can catch this latest episode a few different ways: either listening to the audio through the in-page player, by downloading the mp3 or you can watch the live video of the recording.

Link: http://phptownhall.com/blog/2014/02/15/episode-19-jeffrey-laracasts-bdfls/
Source: http://www.phpdeveloper.org/news/20829

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

PHP Town Hall Podcast: Episode 19: Episode 19: Jeffrey Way, Laracasts and BDFLs

PHP Town Hall Podcast: Episode 19: Episode 19: Jeffrey Way, Laracasts and BDFLs

The PHP Town Hall podcast has released their latest episode today – Episode #19 with special guest Jeffrey Way of the Laravel community.

Well known PHP/Laravel nice-guy Jeffrey Way from NetTuts and Laracasts joins regular guest Zack Kitzmiller to discuss the wonderful world of Laravel once again. This time the discussion focuses on some of the silly complaints people have with an otherwise wonderful system, and on the reusability of its packages.

You can catch this latest episode a few different ways: either listening to the audio through the in-page player, by downloading the mp3 or you can watch the live video of the recording.

Link: http://phptownhall.com/blog/2014/02/15/episode-19-jeffrey-laracasts-bdfls/
Source: http://www.phpdeveloper.org/news/20829

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

Community News: Packagist Latest Releases for 02.25.2014

Community News: Packagist Latest Releases for 02.25.2014Recent releases from the Packagist:

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

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

Community News: Packagist Latest Releases for 02.25.2014

Community News: Packagist Latest Releases for 02.25.2014Recent releases from the Packagist:

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

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

Community News: Latest PECL Releases for 02.25.2014

Community News: Latest PECL Releases for 02.25.2014Latest PECL Releases:

  • jsonc 1.3.4
    - Fixed bug #65753 JsonSerializeable couldn’t implement on module extension

  • yp 1.0.0RC1
    Initial beta release

    – Fix build with modern PHP including PHP 5.3, 5.4 and 5.5 [gasolwu]
    – Build testing environment with vagrants [gasolwu]
    – Add tests for all public funcctions [gasolwu]

  • apn 1.0.3
    - Fixed typo in constant name (APN_PODUCTION -> APN_PRODUCTION)
    - Incorrect warning message in apn_feedback()
    - Added “invalid token” warning in apn_send()
    - TSRM fixes

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

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

Community News: Latest PECL Releases for 02.25.2014

Community News: Latest PECL Releases for 02.25.2014Latest PECL Releases:

  • jsonc 1.3.4
    - Fixed bug #65753 JsonSerializeable couldn’t implement on module extension

  • yp 1.0.0RC1
    Initial beta release

    – Fix build with modern PHP including PHP 5.3, 5.4 and 5.5 [gasolwu]
    – Build testing environment with vagrants [gasolwu]
    – Add tests for all public funcctions [gasolwu]

  • apn 1.0.3
    - Fixed typo in constant name (APN_PODUCTION -> APN_PRODUCTION)
    - Incorrect warning message in apn_feedback()
    - Added “invalid token” warning in apn_send()
    - TSRM fixes

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

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

Johannes Schlüter: On rumors of “PHP dropping MySQL”

Johannes Schlüter: On rumors of “PHP dropping MySQL”

There’s been some rumors floating around about the possibility of PHP’s MySQL support going away in upcoming versions of the language. In his latest post Johannes Schlüter tries to bring a bit of clarity to these rumors and what’s actually being removed.

Over the last few days different people asked me for comments about PHP dropping MySQL support. These questions confused me, but meanwhile I figured out where these rumors come from and what they mean. The simple facts are: No, PHP is not dropping MySQL support and we, Oracle’s MySQL team, continue working with the PHP community.

He suggests that the confusion might have come from the recent changes to “soft deprecate” the oldest ext/mysql functionality and warn users against using it in their applications. He talks about the history of MySQL support in PHP and one project that removing it could adversely effect (WordPress).

Link: http://schlueters.de/blog/archives/177-On-rumors-of-PHP-dropping-MySQL.html
Source: http://www.phpdeveloper.org/news/20826

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

Johannes Schlüter: On rumors of “PHP dropping MySQL”

Johannes Schlüter: On rumors of “PHP dropping MySQL”

There’s been some rumors floating around about the possibility of PHP’s MySQL support going away in upcoming versions of the language. In his latest post Johannes Schlüter tries to bring a bit of clarity to these rumors and what’s actually being removed.

Over the last few days different people asked me for comments about PHP dropping MySQL support. These questions confused me, but meanwhile I figured out where these rumors come from and what they mean. The simple facts are: No, PHP is not dropping MySQL support and we, Oracle’s MySQL team, continue working with the PHP community.

He suggests that the confusion might have come from the recent changes to “soft deprecate” the oldest ext/mysql functionality and warn users against using it in their applications. He talks about the history of MySQL support in PHP and one project that removing it could adversely effect (WordPress).

Link: http://schlueters.de/blog/archives/177-On-rumors-of-PHP-dropping-MySQL.html
Source: http://www.phpdeveloper.org/news/20826

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