Live data from Hacker News

Ask HN: PHP 7 for new projects – your experience and recommendations

news.ycombinator.com

1–10 of 24 posts

Ask HN: PHP 7 for new projects – your experience and recommendations

#1
If you are using PHP 7.x for your side-project or main product, what has been your experience?

- has speed of performance ever been an issue?

- how easy have your found it to deploy (and keep up-to-date) PHP apps on the server

Overall, do you recommend PHP 7.x for new web projects? Your thoughts appreciated. Thank you.

Re: Ask HN: PHP 7 for new projects – your experience and recommendations

#3
I'd recommend considering alternative options to PHP, in other projects I have found it hard to maintain over a longer period and things got messy very fast, even when using frameworks.

Also, in my opinion, it's not a very nice language at all.

Re: Ask HN: PHP 7 for new projects – your experience and recommendations

#4

I'd recommend considering alternative options to PHP, in other projects I have found it hard to maintain over a longer period and things got messy very fast, even when using frameworks. Also, in my opinion, it's not a very nice language at all.

Do you care to provide any actual arguments?

Don't get me wrong, your post just doesn't sound too helpful

Re: Ask HN: PHP 7 for new projects – your experience and recommendations

#5
I still haven't found a language that lets me get a very basic website up and running faster than PHP.

I don't care too much for the syntax but if you just want to put up a simple page with server-side logic in as quick a time as possible then its as good as most.

Re: Ask HN: PHP 7 for new projects – your experience and recommendations

#6
Speed of PHP 7 is much improved, it's way faster than 5, and fast enough for any app (Facebook runs on a flavor of PHP)

I use the Laravel Framework on PHP 7, Laravel makes PHP nice to work with. Laravel is as enjoyable as Rails, sure you miss Ruby but Laravel keeps development fun. If you are doing a project in PHP use Laravel.

I use forge.laravel.com to spin up servers and do deployments. It saves a ton of time and is definitely worth it. You could use it for any PHP project not just Laravel. There is also envoyer for zero downtime deployments. You setup Forge to pull code from from your Github/Bitbucket.

Forge is really amazing you can register a new domain, create a new Laravel project, and have it live on the web in 10 minutes. You can also add Lets Encrypt SSL certs right from the forge dashboard. Same for setting up an existing project from scratch it's fast to create a new droplet for an existing project.

If you are using Laravel I would recommend updating your apps as new versions of Laravel are released. Each update is pretty painless but if you wait to update doing them all at one time to get to the latest version can take some time.

There are lots of great time saving Laravel packages out there most require you to keep Laravel close to the latest release so it's worth staying up to date for the packages. Plus each release of Laravel always has nice additions to the framework.

Re: Ask HN: PHP 7 for new projects – your experience and recommendations

#10
I would highly recommend PHP for quick web development. We've been using it for all our sites and it's such a breeze to develop using it. We've never had any performance issues either (in my experience they are always more on the db end)

I'll highly recommend that you spend some time learning composer first. That is a must for any serious php development.

Then there are optional things you can learn like a framework like laravel, symfony, etc. My personal opinion is to stay away from it since I have found that a router is mostly all you need to get started quickly. Often times the headache to configure and debug the framework far exceeds the utility of it. So my own personal preference is to just use composer and a router and native PHP. Keeps things simple, easy to debug and super easy to deploy. But YMMV.

Post reply on HN