Code it
4.6K views | +0 today
Follow
Code it
This is a curated resource for programmers and software architects. It is regularly updated with Articles, Hacks, How Tos, Examples and Code.
Curated by nrip
Your new post is loading...
Your new post is loading...
Scooped by nrip
Scoop.it!

Whats new in PHP8 ?

Whats new in PHP8 ? | Code it | Scoop.it

PHP 8 , released on November 26, 2020 is a new major version. It introduces some breaking changes, as well as lots of new features and performance improvements.

Because of the breaking changes, there's a higher chance you'll need to make some changes in your code to get it running on PHP 8. If you've kept up to date with the latest releases though, the upgrade shouldn't be too hard, since most breaking changes were deprecated before in the 7.* versions.

Besides breaking changes, PHP 8 also brings a nice set of new features such as the JIT compiler, union types, attributes, and more.

The JIT Complier :) It is the first time that PHP version has a compiler – JIT – that caches a version of your already interpreted code and generates a machine code as an output (machine code is on with 0’s and 1’s only). The “just in time” compiler promises speed improvements for complex tasks and algorithms and opens new opportunities for the PHP language to broaden its reach and applications. 

read more at https://stitcher.io/blog/new-in-php-8

ready to upgrade -> https://stitcher.io/blog/php-8-upgrade-mac

 

No comment yet.
Scooped by nrip
Scoop.it!

The highly popular PHP 5.x branch will stop receiving security updates at the end of the year.

The highly popular PHP 5.x branch will stop receiving security updates at the end of the year. | Code it | Scoop.it

According to statistics from W3Techs, roughly 78.9 percent of all Internet sites today run on PHP.

 

But on December 31, 2018, security support for PHP 5.6.x will officially cease, marking the end of all support for any version of the ancient PHP 5.x branch.

 

This means that starting with next year, around 62 percent of all Internet sites still running a PHP 5.x version will stop receiving security updates for their server and website's underlying technology, exposing hundreds of millions of websites, if not more, to serious security risks.

 

If a hacker finds a vulnerability in PHP after the New Year, lots of sites and users would be at risk.

 

"This is a huge problem for the PHP ecosystem, While many feel that they can 'get away with' running PHP 5 in 2019, the simplest way to describe this choice is: Negligent."

 

"To be totally fair: It's likely that any major, mass-exploitable flaw in PHP 5.6 would also affect the newer versions of PHP," Arciszewski added.

 

"PHP 7.2 will get a patch from the PHP team, for free, in a timely manner; PHP 5.6 will only get one if you're paying for ongoing support from your OS vendor.

 

"If anyone finds themselves running PHP 5 after the end of the year, ask yourself: Do you feel lucky? Because I sure wouldn't."

 

more at https://www.zdnet.com/article/around-62-of-all-internet-sites-will-run-an-unsupported-php-version-in-10-weeks/

 

 

 
No comment yet.
Scooped by nrip
Scoop.it!

Migrating your Development Environment from PHP 5+ to PHP 7

Migrating your Development Environment from PHP 5+ to PHP 7 | Code it | Scoop.it

Many PHP applications are still running on PHP 5.x, not ready to take full advantage of the awesome features that PHP 7 offers.

 

A lot of developers have not made the switch because of certain fears of compatibility issues, migration challenges and the strange awkward feeling that migrating will take away a big chunk of their time.

 

In this tutorial, you'll learn how to upgrade your PHP 5 application to PHP 7 starting from upgrading your development environment.

 

Mac OS X

If you are a fan of Homebrew, you can install PHP 7.0 via homebrew like so:

brew tap homebrew/dupes brew tap homebrew/versions brew tap homebrew/homebrew-php brew unlink php56 brew install php70

If you were using PHP 5.6, then you should unlink the old PHP by running brew unlink php56 else unlink whatever version is present before you go ahead to install PHP 7.0.

Another option is to install it via curl on your terminal like so:

curl -s https://php-osx.liip.ch/install.sh | bash -s 7.0

Windows

If you are fan of WAMP or XAMPP, then you can just download the latest versions of the software. It comes packaged with PHP 7.0.

Download and install the last/latest version

Another option is to download the PHP 7.0 distribution for windows from http://windows.php.net/download#php-7.0.

Ubuntu

If you are running Ubuntu on your machine, especially around v14 and 15, you can install PHP 7.0 by running these commands:

sudo apt-get update sudo add-apt-repository ppa:ondrej/php sudo apt-get install -y php7.0-fpm php7.0-cli php7.0-curl php7.0-gd php7.0-intl php7.0-mysql

Note: You can check out how to install PHP 7 and Nginx here, and manually build memcached module for PHP 7.

 

 

read the steps for the other OS's as well as other details in the original article at https://auth0.com/blog/migrating-a-php5-app-to-php7-part-one/

 

No comment yet.
Scooped by nrip
Scoop.it!

5 reasons you should forget the coding bootcamp & study online instead

5 reasons you should forget the coding bootcamp & study online instead | Code it | Scoop.it

Teaching coding languages and skills is a critical need in today’s technology-infused society, but we’re falling behind in the talent wars.

Even though programming jobs are some of the best paying in the world, the gap of qualified developers and programmers is only projected to increase in the next several years. In fact, it’s estimated that there will be 1 million jobs left vacant by 2020 because of this alarming lack of qualified developers.


The lack of qualified talent in the computer science field has created fertile ground for the growing number of coding boot camps popping up across the nation. In fact, a recent study found that this year, the number of boot camp graduates is expected to triple from last year’s numbers, yielding nearly 6,000 graduates.


These intensive, multi-week full-time courses claim that they provide students with the necessary skills they need to join the world of developers.


While boot camps can assist with providing new skillsets and helping fill the talent gap, they are still somewhat limited in what they can offer. Here are a few reasons why e-learning is a better alternative:


    No comment yet.