PHP

Application and Data / Languages & Frameworks / Languages
Avatar of Scrayos
CEO at Scrayos UG (haftungsbeschränkt)·

As we use the Woltlab Suite Core, we are bound to PHP and use it with the as a FPM. Currently version 7.4 is running on all of our hosts and we use a lot of the recently added typing and nullability features to write more reliable code that can be easier analyzed through our tools.

We also use it for some WSC embedded cron-scheduling and internal web-interfaces, but tend to use a more modern Frontend-Backend architecture for all newly created projects as we enjoy the clear differentiation between View and Controller.

READ MORE
1 upvote·1.9K views
Avatar of undefined
Avatar of jaumebosch
CTO at Casum·
Shared insights
at

PHP is a well-tested and huge community language which has been proven as a fast and reliable way of quick development. Here in Barcelona is one of the most popular languages, we celebrate some conferences like https://php.barcelona Also, with the addition of some framework like Symfony, you could add more reliability to the development process. Don't forget to upvote this review

READ MORE
2 upvotes·3.3K views
Avatar of undefined
Avatar of jaumebosch
CTO at Casum·
Shared insights
at

Symfony is probably the most popular PHP framework nowadays. We began with Symfony 2.6 and during 2019 we migrated to Symfony 4.2, also introducing #DDD and #hexagonal to our development process. Thanks to this improvements we could manage a quite big company with a small development team. If you agree, don't forget to upvote my review.

Thx

READ MORE
2 upvotes·15K views
Avatar of undefined
Needs advice
on
Laravel
and
Symfony

From a StackShare Community member: ‚ÄúA client is requiring me to use PHP for a custom lead management app for internal use. Should I use a framework like Laravel/Symfony or just stick with the basics?‚ÄĚ

READ MORE
2 upvotes·4.3K views
Replies (12)
Recommends
Laravel

I use Laravel because it has integrated unit testing that making TDD a breeze. Having a View (Blade engine) making me easier to work without too many efforts in front-end.

I do recommend going into the root of programming once getting stable on any framework. Go beyond Symfony, go beyond PHP, go into the roots to the mother of programming; c++, c, smalltalk, erlang OTP. Understand the fundamental principle of abstraction.

A framework is just a framework, it helps in getting feedback quickly; like practicing dancing in front of a mirror. Getting fundamentals right is the one true key in doing it right. Programming is not hard, but abstract-programming is extremely hard.

READ MORE
10 upvotes·3K views
Avatar of ahmetertem
Full Stack Developer ·
Recommends
Laravel

I use Laravel because right now it's really hard to find someone using native PHP without a framework. Also learning a framework easier than native for newcomers. Also; I was not supporting frameworks before but after start developing a core with one I saw i can find many new people for the projects.

READ MORE
5 upvotes·561 views
View all (12)
Needs advice
on
Laravel
and
Node.js

I want to create a video sharing service like Youtube, which users can use to upload and watch videos. I prefer to use Vue.js for front-end. What do you suggest for the back-end? Node.js or Laravel ( PHP ) I need a good performance with high speed, and the most important thing is the ability to handle user's requests if the site's traffic increases. I want to create an algorithm that users who watch others videos earn points (randomly but in clear context) If you have anything else to improve, please let me know. For eg: If you prefer React to Vue.js. Thanks in advance

READ MORE
5 upvotes·26.2K views
Replies (7)
Recommends
Node.js

Node is light and scalable and has been used widely for enterprise solutions that need faster response, reliability and better performance. But at the end of the day, for me, when I start a project, I don't shoot for the stars. I build a small application with the possibility to scale in the future that will test my business idea. If the idea is getting volume then I really start thinking about how am I going to build this aiming a specific volume.

READ MORE
12 upvotes·14.3K views
Avatar of voilacabs
CTO at Voila Cab's·
Recommends
Node.js

Hello , Our first version of www.voilacabs.com was programed with Code Ignitor PHP API's, and at times during peak hours when there were huge request's made the response time use to vary from 500 MS to 1 Minute, also at time's we might have to end up restarting PHP-FPM which use to bring things to normal.

Also PHP lacks features like promises queue, Asyc task, etc. which is supported in Node.js. In our V1 release we shifted to Node.js and since last 7 month's we see no lag in any API response, also all our API's are responding in 200-300 Milli Second's with about 8000+ Fleet's in peak hours. So my suggestion is to go with Node.js also you can either go with Mysql or MongoDB ( depending on the usage ) for DB choice's.

When it comes to hosting you can go with group replication which can be replicated across 3 different datacenters for your data safety. This approach will make your system largely scalable at 80% less price then amazon webservcies.

I hope that help's .

READ MORE
6 upvotes·14.4K views
View all (7)
Needs advice
on
Python
and
AWS Lambda

Hello, I am building an analytical application that uses several third-party APIs, combines the data, performs heavy computations, sorts data, and finally serves over a RESTful API which is being used by Frontend tools to visualize the results.

The problem is computation. It's a computation hungry app which has to work on tones of data before it can return a chunk to be visualized. Moreover, the third-party APIs which this application relies on actually provide data in reports format, not the RAW data, which means this data cannot be normalized to be saved in any database format.

The backend, which does computation, is PHP based serving results over a RESTful API.

What do you think is the best approach to design such an application? What tools, infrastructure, and technologies I should consider for making sure that the computation is fast for huge data, and what should I use to cache/store this kind of data for faster retrievals?

READ MORE
4 upvotes·8.3K views
Replies (2)
Recommends
AWS Lambda

wrong question. lol

python is a language, lambda is faas.

I think your question should be php vs python which can help me to get better computation? should I use lambda for my computation hungry app.

the answer is.

  1. use python if you can, python is more flexible than php, especiaslly for data processing (the restful api does not return your data, you need some processing for it)
  2. you can use lambda, it will be better to not use lambda alone, lambda has limit like 15 minutes for the maximum running time, my suggestion is to design an async solution, use AWS SQS as the queue and lambda as the worker, at front-end, you can either polling from the queue through api gateway or use graph ql subscribe or websocket.
READ MORE
Tim's Zone - A place for dev, entrepreneur and lifelong learner. (tim.bai.uno)
5 upvotes·334 views
Needs advice
on
Stencil
and
Polymer

Which one is good to go with it? We are using angular9 and PHP and are looking for excellent performance and fast development. Which tool is worth it?

READ MORE
2 upvotes·884 views
Replies (1)
Recommends
Ionic

Between the two, I would go with Stencil for being more stable, having a good integration with Angular and having very cool features like lazy-loading and differential bundling. Polymer is used on YouTube, which is great, but the migration to LitElement isn't really going fast, showing that it isn't very mature. However, you're using Angular 9. You will probably write your components with it.

What you're probably looking for is actually a component library, which Stencil isn't. What I suggest you take a look instead is Ionic, a web component library built with Stencil, very good alternative to Polymer.

READ MORE
4 upvotes·38 views
Needs advice
on
PHP-MVC
Node.js
and
Django

which one i should use for tech informative website and mobile application both i need security fast and scalable from this technology Node.js PHP or Django please help me

READ MORE
1 upvote·33 views
Needs advice
on
Python
PHP
and
Node.js

Hi, I have a project on my mind, and I need some help. First of all, I know it is all about personal preference, but I am a beginner in the back-end part. So, I am trying to figure out which language is better, for example, for user authentication and interaction between the users. Also, I don't know which framework is better for this work. My first thought was to use PHP, but after some research on the internet, I'm leaning towards Laravel. I will be grateful if you have some advice for me.

#newbie

READ MORE
6 upvotes·55.9K views
Replies (7)
Avatar of adzaria
FullStack Dev ·
Recommends
PHP
Node.js

First thoughts: * As a beginner you need to understand concepts first, all languages out there are great, each has it's own philosophy, each is better suited for a specific situation. Learn concepts first, do something, then you will understand the differences between them and why one should be chose over another for a task * As a project manager you want your project to come to an end. You will get lost in all the different solutions out there (and it's good), but don't get lost too far. Very often I see people getting lost in those debates and never achieving things, like someone writing a book that would still be choosing the font 6 months after (we've all done that it's ok, but we have to realise it)

Chances are your project can be equally good on any different stacks. I heard an interview of someone from Uber who said something like they started with python, went to node, went back to python and went to go, and with micro-services now they can have all of them all-together.

Last remark: from what I know Laravel is a framework for PHP, so it IS PHP. Just like Symphony for PHP, Express for Node.js, Koa for Node.js, Flask for Python ...

Now to answer your question :

  • PHP has a big community, it is great and easy to start with, and you will definitely will learn real object oriented structure
  • Node.js has a big community too, don't worry finding help will be as easy. It is less easy to start with but in my point of view it is a lot easier to keep on going with it on a long run. Why ? Because it's very easy to run a new project, and it executes javascript. How is it good ? Because chances are that your front will also be using javascript (React.js / View.js are crazy good). Thanks to that you will be able to master the language better because you will use it all day (and at first mastering one language is more valuable than barely knowing two) and you won't have to switch languages in your head when you code. And communication between front and back will be in json ... Which is crazy close to javascript.

Alexander is right, if you go with PHP take your time first to do things by yourself like building your own MVC, the benefit is huge and the risk is to never really be able to understand what's happening on a deeper level. (at some point you can switch to a framework though). He's also right on choosing a strongly typed language, problem is javascript is not. This is why, if you choose node, when you start being confident, add typesccript.

Hope it helps, good luck

READ MORE
10 upvotes·1 comment·47.8K views
Avatar of vectorialpixel
Software Engineer ·
Recommends
PHP

Short answer, if it's a web project (and I guess it is) go with PHP and you can integrate NodeJs services later.

@adzaria (Ezra Fayet) gave a great answer and I'd like to emphasize the first part: As a beginner you need to understand concepts first. For me that means to understand the web, how servers and requests work, APIs and few others.

Now, I'd like to add few things so, this is the long answer:

Why PHP?

  • Everyone knows about the community - PHP is way older so you will find lots of resources and I am not only talking about learning - also lots of helpful tools and packages
  • PHP is great for OOP - not perfect, but with PHP7 got great - and if you are a beginner you want to know good OOP for your future. Let's say JavaScript's OOP is a bit strange; I will not get into details but, let's say "it's not by the book". You can still learn JavaScript for your front-end

Why not Python? Python got popular because of AI - don't use PHP for AI and don't use Python for web applications. I can elaborate a lot here but I guess you get the point.

Why not NodeJs?

  • NodeJs got popular because of sockets - and it works great, but as a service
  • Try to find a good and affordable hosting for NodeJs. How about for Python?
  • I would not ignore the security issues that it had and could appear. PHP is older and, therefore, wiser :)

Now, about a framework... is this a learning project or something that you need to do fast? My advice is to start a small project and not use any framework. However, you can use packages and inspire from a framework's architecture - Laravel is a good role model.

Why not start a big project? You will get distracted, get into details and product design stuff and get scared or border and abandon it. For your project you need an MVP - list of minimum required features that you put on paper - that you will complete. After that you can improve.

Good luck!

READ MORE
8 upvotes·3 comments·46.4K views
View all (7)
Needs advice
on
Socket.IO
React
and
PHP

Hi, I have to develop a chat support system. This will include the ability to embed a live chat widget on websites, while support agents will be available online on Android / iOS apps and web-based backend as well. Additionally, the chat widget on the host website will also behave like a chatbot before starting a chat session. It'll ask certain questions, and depending on the visitor's answers, it'll ask further questions or connect to a relevant support representative (the Agent).

I have already worked on a similar chat system, but that's based on the conventional Database and Webservice/API approach which is slow, non-real-time.

I need to make sure that the system is all Cloud Native with the modern scalable and highly available stack, preferably over AWS. I have basic AWS experience and pretty good experience with JavaScript ( Node.js / React ) and PHP Development.

What stack should I use for this kind of project?

READ MORE
10 upvotes·12.1K views
Replies (3)
Avatar of maxmusing
Founder & CEO at BaseDash·
Recommends
Socket.IO
at

Socket.IO is great for building real-time systems like chat. It's effectively a nice wrapper around WebSockets, with the ability to fallback to other methods for browsers that don't support it. We just used it to implement real-time collaboration at BaseDash, including a chat system like you're looking to build.

Node.js is probably the correct choice, especially if you're already familiar with it You'll probably still need to build an API to send requests to your server, and then use Socket.IO to push messages to your clients. This will let you authenticate users and store messages on your database so you can retrieve them later. PostgreSQL and MongoDB are good options for your database, you should be fine either way. Don't worry about speed, they'll both be sufficient.

React on the front end makes it really simple to handle real-time updating data. Again, even better since you're already familiar.

READ MORE
11 upvotes·30.5K views
Avatar of ctovarun6818
CTO at Nugen Computer & I.T. Services·

Socket.io with Node.js and socketio client for Reactjs would be perfect for this as Nodejs is very good in two way communication. I would suggest you to deploy the socket backend api on different server so that it does not slow down the I/O operations. In addition to this, you can use Redis if you want to enhance the application performance.

READ MORE
8 upvotes·493 views
View all (3)