r/php7 • u/Ramirond • Mar 09 '17
r/php7 • u/Aieshhasan • Mar 01 '17
Why You Should Migrate From PHP 5 to PHP 7 in 2017
PHP is extremely a popular language. Almost 82% websites use PHP which means that most of the site are made on PHP to at least some extent.PHP 7 has gone through several months of beta testing and was finally released in the stable form on 3rd Dec 2015, promises with some real speed improvements and latest features in comparison to previous versions of this language. Read on for some more advantages of migration from PHP 5 to PHP 7. http://www.arpatech.com/blog/migrate-from-php5-to-php7-in-2017/
r/php7 • u/Ramirond • Feb 09 '17
Migrating a PHP 5 App to PHP 7 (Tools & Implementation) - Part 3
r/php7 • u/markknol • Feb 07 '17
Haxe 3.4 - a excellent PHP7 compiler
If you're first hearing about it, Haxe is a language that compiles to many targets; PHP, JavaScript, C++, C#, Java, Python, Lua, Flash, HashLink and Neko. Code once written in Haxe can be compiled to any target Haxe supports. Meanwhile, Haxe has a fine grained blend between object oriented and functional programming and because it's strictly typed it helps catch bugs before it even runs and makes you work more efficiently by enabling great tooling support. It even allows compile-time syntax-transformation with so called macros.
The latest release has support for PHP7, read about it on our blog: https://haxe.org/blog/haxe-3.4-release/
r/php7 • u/Alakmalak • Dec 23 '16
Benefits of developing your websites using PHP 7
PHP 7 is a major release of PHP since a while and is a big leap forward in terms of features and performance. The last major release of PHP was in 2004 with PHP 5. Hence as one might expect, PHP 7 has a great many new features and improvements. A website built in PHP 7 will also perform much better and have faster loading times. All most all the open source frameworks like Laravel, Zend Framework, Cake PHP, etc have released new versions to support PHP 7. In addition to which even the open source software like WordPress, Joomla, etc have also new versions to take advantage of the splendid new features of PHP 7 which are also a performance booster.
Features of PHP 7 in brief PHP 7 has improved performance due to PHPNG code merge as result of which it is twice as times faster. PHP 7 has been specially optimised to consume lesser memory. It is now possible enforce the return types There is improved support for 64 bit architecture. The exception handling has improved with many fatal errors being now handled via exceptions. The random number generator API has been made more secure. It makes use of a new Zend Engine (Version 3.0) which is a major performance booster.
Advantages of developing website in PHP 7
PHP 7 is a new version of PHP 7. This is a special release in many ways. Besides being a major release of PHP since more than 10 years, the entire code has been written from ground up with nothing being carried forward from the previous versions. This version of PHP 7 is highly optimized for the developers. It is a major speed and performance booster. Drupal 7 that has been build using PHP 7 is twice as fast compared to the PHP 5.6 one. WordPress too shows a major performance boost and is twice as fast with PHP 7
r/php7 • u/hawaiidesign • Feb 14 '16
How to install or upgrade PHP 5 to PHP 7 [Video Tutorial]
r/php7 • u/unicornh_1 • Dec 22 '15
if i am a beginner...?
if i am a beginner .. and want to learn php is it good idea to directly learn php7 instead of previous versions..
also is anything i should know before diving into php environment?
r/php7 • u/TheAndreiM • Sep 28 '15
Need help upgrading framework to be compliant with PHP 7
Hey guys, I need help with making the framework more compliant with PHP7. Can anyone help out?
https://github.com/juliarLang/juliarICE Follow instructions, right below. Thanks for your time!
r/php7 • u/gregradzio • Aug 16 '20
Stop writing database logics in your controller actions
In this article I explain why you should stop doing it :) You will get access to TDD videos that will teach you how to do database integration testing properly https://medium.com/p/do-not-use-eloquent-in-your-laravel-controllers-db59305036db
r/php7 • u/anuket_jain • May 02 '20
How To Install PHP 7.4, 7.3, 7.2, 7.1 on CentOS/RHEL 8
r/php7 • u/saab_guy • Dec 08 '19
php7.3.6 to php 7.3.11 problems
I am working on Runeaudio (php-fpm/js frontend for mpd which is served from a RPi) and lost some functionality after an update from 7.3.6. This is on Arch Linux and I have updated php-fpm and the frontend files from php5.6.x to 7.3 and everything went pretty well. I was able to serve all the info fine (web based MPD UI). A subsequent Arch update then installs 7.3.10 and the UI now fails when trying to run a js file.
The bulk of the UI is fine I have tried reverting php from 7.4.0 (current) to 7.3.6 and the associated php extensions (php-redis, php-iredis, php-igbinary) and have the same result. An old os image from march 2019 with 7.3.6 works, but when I take the updated image and revert the php files, it also gives me the same result (will not run the java script to populate the music queue). This leads me to guess that it is not php, but some other dependent package.
Looking for any hairbrained ideas
r/php7 • u/Almatedo • Nov 20 '19
Join Two tables and display on web page as One Table
Hello Friends, I'm creating a school result system which allow students to login and access their exams results direct from their web page profiles.
I currently facing problem on how to join the two exam tables(examination_results_f1_mid_term and examination_results_f1_end_term) and display as one table divided into three columns Subject_Name, Mid-Term, End-Term. Is their a php loop to use to display the results using single MySQL join? I tried to use while loop to solve the problem but it shows only examination_results_f1_mid_term results.
Below I have placed a Join query which shows all Student ID and their results on one table. and the expected results. SELECT e.Student_ID, e.Civics, e.History, r.Civics, r.History FROM examination_results_f1_mid_term e LEFT JOIN
examination_results_f1_end_term r ON r.Student_ID = e.Student_ID
Below is the result of above JOIN QUERY from MYSQL Tables


r/php7 • u/4lldr13dup • Apr 14 '19
Keeping track of classess methods and properties
Hello. I am writing an app that uses several classes with several methods.
Although classes names and methods names are quite clear on what they do, I found myself looping through files.
My question is: is there a way to create a file, a kind of documentation file, where I can quickly search for classes and methods and properties?
If you want you can also tell me how you keep track of large set of classes.
Thank you!
r/php7 • u/dev0x0 • Sep 23 '18
Environ PHP .env loader with ini syntax and array support
r/php7 • u/pkasid • Jun 11 '18
We added support for PHP 7.2 in our online IDE and we would love to hear your feedback
r/php7 • u/[deleted] • Jan 15 '18
How to Deploy a #PHP 7 app with #MongoDB Module to AWS Elastic Beanstalk
r/php7 • u/moneymakersucks • Oct 16 '17
How Perfectly Sane People end up Writing Terrible Code
r/php7 • u/alzador123 • Oct 09 '17
5 features of PHP 7 that will help you build powerful apps for mobile, cloud & website
r/php7 • u/SarasaNews • Sep 20 '17
Avoid these 35 habits that lead to unmaintainable code
r/php7 • u/terepaimawork • May 07 '17
PHP entry tutorial
Hello guys, do you know where can I find a entry level PHP tutorial or course? Also, if you know a wordpress tutorial or course too, that would be good.
r/php7 • u/[deleted] • Apr 13 '17
From a student learning PHP who wants a REPL
I starded a course in a technical diploma in Multimedia Integration after, well lets say things as they are, my depression in a science course that I almost finnished( something between high school and college in quebec.. I only failed the courses in wish I was passioned because pressure and stuff). So ( I always say too much details sorry for that), after this plan B wich trggered a new passion in programming wich made my attention out of my PHP courses into Common- Lisp for wich I became abusively passionate, when I wanted to go back to PHP ( wich have the advantage to have all the work ( that would be not that hard in lisp even if probably uselles because compatibility) done already for the mosre compliceted stuff. ( OK HERES THE QUESTION SORRY) is it possible to have a REPL that can debug everything I do live as i do them ? like SBCL do for me ( I swear I feel like it can give me lottery number, it's so precise ). so Yeah, REPL for php ?
PHP7 Slower Results Than 5.6 On My Site?
I've been testing new things to optimize the performance of my wordpress site. I recently purchased & upgraded to litespeed for a web server, and just made the switch to PHP 7.
I wasn't expecting much of a performance boost from litespeed, however I was expecting to see a night and day difference with the speed of my site once I was using php 7. All the reports and benchmarks I reviewed showed significant increases in speed. Most cases I read sites were about two times faster with php7, but my site actually takes a whole second longer to load on average since making the switch to php7. I'm not using fcgi due to security concerns, but is there any reason why my site is faster with php 5.6 when running speed tests?
My host has been suggesting not to use fcgi for security reasons, but it’s for my own VPS that’s not a shared hosting environment?
Is anyone familiar with any security issues concerning FCGI with wordpress because it seems pretty popular these days?
r/php7 • u/maxpronko • Mar 08 '17