Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Nathan Dench:
BrisPHP News - 1 March 2018
Mar 09, 2018 @ 12:19:26

On his "Tech Notes" blog Nathan Dench has put together a listing of some of the interesting things that happened in the first part of 2018 in the PHP community.

I organise the a post from Marcel Pociot about the GitHub statistics for various PHP projects
  • news around Symfony, Silex and Laravel
  • There's also a few other "random things" to finish off the post with links to other interesting articles, projects and tools.

    tagged: news community 2018 release feature github framework

    Link: https://ndench.github.io/brisphp/brisphp-news

    GitHub Blog:
    Quickly review changed functions in your PHP pull requests
    Feb 27, 2018 @ 09:38:56

    As is mentioned by the Laravel News site and announced on the GitHub blog, repositories that have PHP have a new feature - introspection showing what methods and functions have changed in pull requests.

    The file finder makes it easy to review pull requests and understand how changes impact your code. Now PHP developers can navigate to changed methods and functions right in their pull requests, too.

    Searching the file finder for the term function or the name of a changed function in a PHP file will provide you with a filtered view of the results, so you can easily identify and view the most impactful parts of a pull request. Check out the documentation to learn more.

    An animation in the post shows the feature at work, making use of the "Jump to" menu to show a drop-down listing of all files changed and the methods changed inside them. These can then be used to jump to parts of the pull request (rather than having to search through the entire thing for changes).

    tagged: github pullrequest review jumpto changes quick feature

    Link: https://github.com/blog/2512-quickly-review-changed-functions-in-your-php-pull-requests

    Christop Rumpel:
    My top 3 Laravel 5.6 features
    Feb 08, 2018 @ 09:46:52

    In a new post to his site Christoph Rumpel lists out his top three features of Laravel 5.6 that he enjoys and finds the most useful.

    Yesterday Taylor Otwell released Laravel 5.6 right before the Laracon Online conference. We had a little conference party here in Vienna and a great time watching all the talks together. In one of them Taylor walked us through the new Laravel features and I want to point out my top 3 of them.

    For each of his top three he provides some code examples and screenshots where appropriate:

    • the addition of the Collision package
    • dynamic rate limiting on route definitions
    • Eloquent date casting (enhancing the "casts" functionality already present from v5.5)

    For more information on the other new features that v5.6 include, check out this series of posts from Laravel News.

    tagged: top3 list laravel v56 feature collision ratelimit eloquent date

    Link: https://christoph-rumpel.com/2018/02/my-top-3-laravel-56-features

    Laravel News:
    New Blade Directives Coming to Laravel 5.6
    Dec 13, 2017 @ 14:24:12

    On the Laravel News site there's a new post sharing some of the new Blade directives coming in the 5.6 version of the Laravel framework.

    Laravel 5.6 will include two new form blade directives for cross-site request forgery (CSRF) and HTTP method input, thanks to Taylor Otwell.

    The new CSRF handling replaces the previously used format with a simple @csrf tag in the Blade template (inside of the form). The other is related to the method used to submit the form. The new addition allows you to submit the form via something other than POST using the method_field function.

    tagged: laravel blade feature upcoming template csrf method submit

    Link: https://laravel-news.com/new-blade-directives-laravel-5-6

    Jerzy Zawadzki:
    Symfony 4: New Hope
    Dec 04, 2017 @ 11:16:56

    In a new article to his Medium.com site Jerzy Zawadzki talks about why he things that Symfony 4 is "the new hope" for the framework. In the article he goes through the updates in their major version including code examples, commands and descriptions on each.

    On November 30, 2017 new version of Symfony Framework has been released and it looks like core team followed the Star Wars numbering pattern, as 4th version is much better, leaving previous three behind as they look like ‘prequels’ now.

    In this article, I will try to sum up all important changes made in Symfony 4, so if you are familiar with Symfony 3 and want to get known with new version? - ?this article is for YOU!

    He talks about the changes in developer experience that come along with version 4 and updates to the installation process to make it even simpler. He lists out the packages that are installed in this new version and what's included by default. He then walks through the addition of other packages and tools, pulled in as custom options. Finally he talks about bundles, their use in Symfony 4 and the changes in how applications are structured based on their use.

    tagged: symfony symfony4 changes framework version release feature

    Link: https://medium.com/@zawadzki.jerzy/symfony-4-new-hope-dbf99dde91d8

    Kinsta Blog:
    What’s New in PHP 7.2
    Oct 03, 2017 @ 10:51:03

    On the Kinsta blog there's a new tutorial by Carlo Daniele with a look ahead at the next version of the PHP language - PHP 7.2 - and what you can expect.

    Currently in RC3, PHP 7.2 is planned to be released on November 30. The new release is coming with new features, functions, and improvements that will allow us to write better code. In this post, I will introduce some of the most interesting language features coming with PHP 7.2.

    You can see the full list of upcoming changes on the Requests For Comments page.

    Their list covers a number of the updates coming in this version including:

    • Argument type declarations [for objects]
    • Parameter Type Widening
    • Trailing commas in list syntax
    • Several security improvements

    They also cover some of the functionality that's being deprecated and what kind of impact this new version will have on WordPress users.

    tagged: php72 upcoming version php72rc3 feature deprecation wordpress

    Link: https://kinsta.com/blog/php-7-2/

    Laravel News:
    Laravel 5.5 Now Includes TrustedProxy
    Sep 15, 2017 @ 11:07:03

    On the Laravel News site there's a new post about a feature introduced in version 5.5 of the popular PHP framework: a proxy that's included by default as a part of the TrustedProxy feature.

    Laravel v5.5 was released just a week ago at Laracon EU. You may have noticed that the v5.5 composer.json file requires the similar functionality Symfony has).

    tagged: laravel proxy package feature cloudflare tutorial framework

    Link: https://laravel-news.com/trusted-proxy

    Martin Hujer:
    PHP 7.2 is due in November. What's new?
    Sep 12, 2017 @ 10:15:58

    In a new post to his site Martin Hujer looks ahead at the next major release for the PHP language - PHP 7.2 - and what new features and changes are coming with it.

    PHP 7.2 is planned to be released on 30th November 2017 (see the timetable). And it comes with two new security features in the core, several smaller improvements and some language legacy clean-ups. In the article, I will describe what the improvements and changes are. I read the RFCs, discussions on internals and PRs on Github, so you don't have to.

    Among the changes he lists are updates like:

    • Argon2 Password Hashing
    • Make Libsodium a Core Extension
    • Object typehint
    • Counting of non-countable objects

    He also lists out some of the things that will be deprecated in 7.2 including parse_str without a second argument, create_function, mbstring.func_overload and asset with a string argument. You can check out these and other other changes coming (along with code examples) in the full post.

    tagged: php72 language release upcoming feature deprecation overview

    Link: https://blog.martinhujer.cz/php-7-2-is-due-in-november-whats-new/

    SitePoint PHP Blog:
    How to Master Your API Workflow with Postman
    Aug 21, 2017 @ 11:13:20

    On the SitePoint PHP blog author Younes Rafie has returned with another tutorial, this time with a focus on how Postman can help master your API workflow by making use of several of the features it already includes.

    Building good APIs is hard, and anyone who had the chance to do so can relate to this. A project can easily grow to become a mess. One can keep trying to adopt an approach to make it more enjoyable, like trying a documentation-first workflow, but something always feels clumsy.

    I was trying out Postman lately, a tool we’ve briefly covered before, and I discovered that they’re doing a great job by providing an integrated environment for different components of an API, like authorization, testing, documentation, versioning, etc.

    He then goes through the use of the tool, including screenshots along the way for:

    • Making requests
    • Authorization
    • Environment Variables
    • Testing
    • Validating JSON schemas
    • Working with collections

    The post finishes up with a look at generating documentation for the API using Postman's "View in Web" feature including integrating example calls and publishing it. There's also a look at exporting and importing data and a few links to some other helpful resources.

    tagged: api workflow tutorial postman tool feature screenshot

    Link: https://www.sitepoint.com/master-api-workflow-postman/

    SitePoint PHP Blog:
    PHPBot – Can a PHP Bot Help You Look up Documentation Faster?
    Aug 16, 2017 @ 10:31:39

    On the SitePoint PHP blog there's a new tutorial posted from editor Bruno Skvorc looking at PHPBot, a chatbot tool that might help you look up PHP documentation questions a bit more easily (and quickly).

    I came across PHPBot the other day (not to be confused with Botman or Fondbot) – a “chatbot” which helps you look up PHP manual entries and generates example code for them.

    If you follow me on Twitter, you know I don’t believe in chatbots being chatbots – as someone who’s built some for both commercial purposes and personal ones, and as someone who was around in the age of IRC auto-responding scripts, I see chatbots as a little more than a marketing fad designed to impress today’s Snapchat generation. However, every now and then one will appear that’s actually useful. Could this be the one? Let’s take a look.

    He starts off with some of the basic concepts behind the bot and examples of some of the output from documentation requests. He goes on to talk about the actual usefulness of the bot and provides some instances where it is still lacking in functionality. He also looks at several other subjects including Knowledgebase and Bugs, Autocompletion / Suggestion and Copy / Paste Friendliness.

    tagged: phpbot documentation chatbot review feature opinion useful

    Link: https://www.sitepoint.com/phpbot-can-php-bot-help-look-documentation-faster/