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

SitePoint PHP Blog:
Learn PHP 7, Find out What’s New, and More
Dec 04, 2015 @ 17:16:24

Now that PHP 7 has been released, it's time to catch up with what this new major version has to offer. In this tutorial from SitePoint you can learn about what the latest features and changes are in this release (including what happened to PHP 6).

PHP 7, the next version of the world’s most popular programming language, has been released. We’d love to shoot fireworks and get drunk with our newfound power (seriously, the language is in the true big leagues now, functionality and performance-wise) but we’re sure the rest of the internet will do this for us. Instead, we’ll focus on compiling a (perpetually up to date) list of resources to get started with version 7 – posts describing what’s new, books helping you kick things off, and more.

The post starts by answering the "what happened to PHP 6?" question, listing a few resources with some more information on the topic. Following this it gets into the "what's new" of PHP 7 including:

  • Links to guides to the features themselves
  • Tools to help you get a PHP 7 environment set up
  • Other PHP 7-related tools

There's also some other miscellaneous things mentioned including the gophp7-ext project trying to get as many extensions PHP 7 compatible and some sources for more "live" help for your questions.

tagged: php7 whatsnew features links resources tools gettingstarted gophp7ext

Link: http://www.sitepoint.com/learn-php-7-find-out-whats-new-and-more/

Sammy Powers:
Contributing to the PHP Manual
Jun 19, 2015 @ 18:23:27

If you've wanted to contribute something back to PHP but aren't familiar with C (or don't feel comfortable enough with it) Sammy Powers offers another solution. In his latest post he shows you how to contribute to the PHP documentation and update the manual for new features, missing information or fixes to current code examples.

If you've been wanting to contribute to PHP internals, starting with the documentation can be a great entry point; especially because it doesn't require dusting off those old C books from college. But knowing where to start can be tricky since information on how to contribute to the docs is scattered across the internet. This article is a step-by-step guide of how to contribute documentation to the PHP manual.

He starts with the "quick and dirty" way of editing the manual through the edit.php.net site, but points out that it's really only useful for smaller changes, not large documentation updates. The rest of the post shows you how to set up the documentation locally and generate the results to validate your changes. He talks some about the DocBook format they're written in, the build process with the PhD (PHP docs generator) and running the php.net test suite against the changes. This ensures that nothing else has broken on the site in the process.

He shows you where to make your changes, how to generate it from either a skeleton or using the docgen script and submitting the changes back to the repository. There's also a few other random changes to make before committing the files back via SVN and pushing them back upstream. He ends the post talking about the GoPHP7-ext project and how to find extensions that are missing documentation or where it's incomplete (easy thanks to an included "check-missing-docs" file included in the repository).

tagged: contribute documentation phpnet manual extension gophp7ext docgen tutorial

Link: https://www.sammyk.me/how-to-contribute-to-php-documentation


Trending Topics: