GraphQL聽vs聽Laravel

Get Advice Icon

Need advice about which tool to choose?Ask the StackShare community!

GraphQL
GraphQL

4.8K
4.2K
+ 1
257
Laravel
Laravel

7.6K
4.7K
+ 1
2.9K
Add tool

GraphQL vs Laravel: What are the differences?

Developers describe GraphQL as "A data query language and runtime". GraphQL is a data query language and runtime designed and used at Facebook to request and deliver data to mobile and web apps since 2012. On the other hand, Laravel is detailed as "A PHP Framework For Web Artisans". Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable, creative experience to be truly fulfilling. Laravel attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as authentication, routing, sessions, and caching.

GraphQL belongs to "Query Languages" category of the tech stack, while Laravel can be primarily classified under "Frameworks (Full Stack)".

"Schemas defined by the requests made by the user", "Will replace RESTful interfaces" and "The future of API's" are the key factors why developers consider GraphQL; whereas "Clean architecture", "Growing community" and "Composer friendly" are the primary reasons why Laravel is favored.

GraphQL and Laravel are both open source tools. Laravel with 53K GitHub stars and 16.2K forks on GitHub appears to be more popular than GraphQL with 11.7K GitHub stars and 752 GitHub forks.

PedidosYa, Sellsuki, and Webedia are some of the popular companies that use Laravel, whereas GraphQL is used by StackShare, Twitter, and Intuit. Laravel has a broader approval, being mentioned in 817 company stacks & 753 developers stacks; compared to GraphQL, which is listed in 541 company stacks and 715 developer stacks.

What is GraphQL?

GraphQL is a data query language and runtime designed and used at Facebook to request and deliver data to mobile and web apps since 2012.

What is Laravel?

It is a web application framework with expressive, elegant syntax. It attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as authentication, routing, sessions, and caching.
Get Advice Icon

Need advice about which tool to choose?Ask the StackShare community!

Why do developers choose GraphQL?
Why do developers choose Laravel?

Sign up to add, upvote and see more prosMake informed product decisions

Sign up to add, upvote and see more consMake informed product decisions

Jobs that mention GraphQL and Laravel as a desired skillset
What companies use GraphQL?
What companies use Laravel?

Sign up to get full access to all the companiesMake informed product decisions

What tools integrate with GraphQL?
What tools integrate with Laravel?

Sign up to get full access to all the tool integrationsMake informed product decisions

What are some alternatives to GraphQL and Laravel?
gRPC
gRPC is a modern open source high performance RPC framework that can run in any environment. It can efficiently connect services in and across data centers with pluggable support for load balancing, tracing, health checking...
Falcor
Falcor lets you represent all your remote data sources as a single domain model via a virtual JSON graph. You code the same way no matter where the data is, whether in memory on the client or over the network on the server.
React
Lots of people use React as the V in MVC. Since React makes no assumptions about the rest of your technology stack, it's easy to try it out on a small feature in an existing project.
graphql.js
Lightest GraphQL client with intelligent features. You can download graphql.js directly, or you can use Bower or NPM.
MongoDB
MongoDB stores data in JSON-like documents that can vary in structure, offering a dynamic, flexible schema. MongoDB was also designed for high availability and scalability, with built-in replication and auto-sharding.
See all alternatives
Decisions about GraphQL and Laravel
Johnny Bell
Johnny Bell
Senior Software Engineer at StackShare | 9 upvotes 117.4K views
atStackShareStackShare
Apollo
Apollo
GraphQL
GraphQL
MobX
MobX
JavaScript
JavaScript
ES6
ES6
React
React
jQuery
jQuery
#Hooks馃帲
#Context

We are always building new features and replacing old code at StackShare. Lately we have been building out new features for the frontend, and removing a lot of old jQuery code (sorry jQuery but it's time to go).

We've mainly been using React, ES6 and JavaScript on the frontend to build out the components, and we've been slowly removing some legacy MobX and using GraphQL and Apollo for our state management, if we need to control state further than GraphQL and Apollo allows us to we use just plain React with #context , or the new fancy React #hooks馃帲 .

As we've moved towards the above tech, its really made smashing out new features and updating legacy code super fast, and really fun!

See more
Seun Kola
Seun Kola
CTO at Virtualrobe Limited | 7 upvotes 8.8K views
Apollo
Apollo
Prisma
Prisma
React
React
GraphQL
GraphQL

Using GraphQL for queries and mutation on React app and Prisma database is so cool, easy and fast to learn. i often use Apollo client to integrate both ends. Most times working has a frontend developer and trying to build a MVP product quickly requires tools that require less setup on both production and development in order to test functionalities, and using GraphQL for queries surpasses Rest queries for me because of the flexibility in requesting the data you actually need and not requesting the whole dataset everytime.

But in all, Rest is still the king since most public api support its CRUD processes more than GraphQL but lot of top companies are using it and am definitely using it for various project including my recent pet project(Delivery buddy - A platform that allows pair-to-pair delivery service).

See more
Seun Kola
Seun Kola
CTO at Virtualrobe Limited | 2 upvotes 7.2K views
ExpressJS
ExpressJS
Apollo
Apollo
GraphQL
GraphQL
Prisma
Prisma
React Native
React Native
React
React

Have been working on a side project that focuses on sharing economy, allowing users to pickup and deliver groceries for others. Have already started working on the frontend for the web dashboard using React and plan to use React Native for the mobile app. But am in a dilemma, whether to build the backend myself for the MVP or use firebase for the backend. I need advise, has anyone use Firebase for such project and what are the pros and cons, what issues will i faced.

Note: My proposed stack for the backend is a Prisma database, GraphQL , Apollo and ExpressJS

Thanks in advance to everyone.

See more
Laravel
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.

See more
David Block
David Block
Owner/Developer | 4 upvotes 483 views
atNorth Creek Consulting, Inc.North Creek Consulting, Inc.
Laravel
Laravel

I use Laravel because once a client asked me to use it, I recognized that as a solo programmer, I could go from idea to basic website in under an hour. Add one of the app builder templates and the basic design is done for me as well (I use AdminLTE). Lead management means a simple database and some basic workflow - that is where you should be spending your effort. Laravel is well-enough designed that you can plug in a few basic web pages, a simple set of object models, and some Controllers that hold your business logic - and then you iterate on the pages (the UI) and the business logic until your requirements are met. If you are a stickler or have corporate CSS standards, they can be implemented easily enough. And the community is huge and friendly.

See more
David Block
David Block
Owner/Developer | 8 upvotes 10.8K views
atNorth Creek Consulting, Inc.North Creek Consulting, Inc.
Laravel
Laravel

I use Laravel because once a client asked me to use it, I recognized that as a solo programmer, I could go from idea to basic website in under an hour. Add one of the app builder templates and the basic design is done for me as well (I use AdminLTE). Lead management means a simple database and some basic workflow - that is where you should be spending your effort. Laravel is well-enough designed that you can plug in a few basic web pages, a simple set of object models, and some Controllers that hold your business logic - and then you iterate on the pages (the UI) and the business logic until your requirements are met. If you are a stickler or have corporate CSS standards, they can be implemented easily enough. And the community is huge and friendly.

See more
Jason Martin
Jason Martin
Senior PHP Developer at Orange | 14 upvotes 38K views
Debian
Debian
MySQL
MySQL
Laravel
Laravel

For your purposes, I recommend @Laravel, or even @Symfony or @Yii, or whatever. In your use case, a framework is 100% indicated, because it will cut your boilerplate in half or more, and you'll have a pre-fab organization for files, classes and so on. Personally, I am not a fan of Frameworks, because they tend to take over your project like cancer and trap you. But for an internal app to manage stuff, it's probably the best idea to use one (preferably one you like).

When doing internal apps, your best bet is to stick the essentials and basics, try Laravel with MySQL on a nice Debian virtual machine. Can't go wrong.

See more
Tanner Naeher
Tanner Naeher
owner, designer, developer at Coyote6 GraphX | 3 upvotes 355 views
Laravel
Laravel

If you are going to build from scratch use Laravel, because it is a little easier to learn than Symfony. They have a bunch of great videos to help you along the way. If you know Drupal 8 already, that is built on Symfony and you can harness the backend, but it is going to have a steeper learning curve. On the plus side you can take advantage of all its features. I wouldn't recommend building without a type of framework. Thousands of man hours have gone into those things for a reason. I started learning Symfony w/o Drupal but lost interest once I found out how much easier Laravel was. They both have their advantages and disadvantages, laravel actually uses part of symfony in its code. I like the blade template system better than twig is a big factor in deciding as well. They are both very similar, but blade is closer to native PHP which makes it a little easier to learn.

See more
Ahmet Ertem
Ahmet Ertem
Full Stack Developer | 5 upvotes 508 views
Laravel
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.

See more
Jigar Dhulla
Jigar Dhulla
Senior Application Developer at Endurance International Group | 2 upvotes 262 views
Laravel
Laravel

I use Laravel because you don't have to re-invent the wheel when compared to core PHP. We can focus directly on business logic. And the little learning curve for Laravel is worth it. Can't really compare with Laravel with Symfony as I haven't worked with Symfony yet. My suggestion would be to pick one and stick to it. If at all you have to move to other, it should be easy. Last thing I would like to add is that there are more people around who knows Laravel compared to PHP, may be that's why I started with Laravel.

See more
Munkhtegsh Munkhbat
Munkhtegsh Munkhbat
Software Engineer Consultant at LoanSnap | 9 upvotes 20.4K views
GraphQL
GraphQL
Apollo
Apollo
React
React
Heroku
Heroku
styled-components
styled-components
PostgreSQL
PostgreSQL
Prisma
Prisma
graphql-yoga
graphql-yoga
#Backend
#Frontend

In my last side project, I built a web posting application that has similar features as Facebook and hosted on Heroku. The user can register an account, create posts, upload images and share with others. I took an advantage of graphql-subscriptions to handle realtime notifications in the comments section. Currently, I'm at the last stage of styling and building layouts.

For the #Backend I used graphql-yoga, Prisma, GraphQL with PostgreSQL database. For the #FrontEnd: React, styled-components with Apollo. The app is hosted on Heroku.

See more
Tassanai Singprom
Tassanai Singprom
Slack
Slack
BrowserStack
BrowserStack
Sentry
Sentry
Kibana
Kibana
Visual Studio Code
Visual Studio Code
npm
npm
GitLab
GitLab
GitHub
GitHub
Git
Git
Elasticsearch
Elasticsearch
Postman
Postman
Google Analytics
Google Analytics
MariaDB
MariaDB
GraphQL
GraphQL
Amazon RDS
Amazon RDS
Lumen
Lumen
Laravel
Laravel
Firebase
Firebase
Vue.js
Vue.js
Sass
Sass
Ubuntu
Ubuntu
Amazon EC2
Amazon EC2
Redis
Redis
jQuery
jQuery
HTML5
HTML5
PHP
PHP
JavaScript
JavaScript

This is my stack in Application & Data

JavaScript PHP HTML5 jQuery Redis Amazon EC2 Ubuntu Sass Vue.js Firebase Laravel Lumen Amazon RDS GraphQL MariaDB

My Utilities Tools

Google Analytics Postman Elasticsearch

My Devops Tools

Git GitHub GitLab npm Visual Studio Code Kibana Sentry BrowserStack

My Business Tools

Slack

See more
Michael Mota
Michael Mota
CEO & Founder at AlterEstate | 6 upvotes 9.9K views
atAlterEstateAlterEstate
Django
Django
Graphene
Graphene
GraphQL
GraphQL

We recently implemented GraphQL because we needed to build dynamic reports based on the user preference and configuration, this was extremely complicated with our actual RESTful API, the code started to get harder to maintain but switching to GraphQL helped us to to build beautiful reports for our clients that truly help them make data-driven decisions.

Our goal is to implemented GraphQL in the whole platform eventually, we are using Graphene , a python library for Django .

See more
Michael Mota
Michael Mota
CEO & Founder at AlterEstate | 4 upvotes 990 views
Next.js
Next.js
Graphene
Graphene
GraphQL
GraphQL
Django
Django

I've been using Django for quite a long time and in my opinion I would never switch from it. My company is currently using Django with REST framework and a part in GraphQL using Graphene. On the frontend we use Next.js and so far everything has been running quite good. I've found limitations but manage to solve it.

As someone mentioned before, if you are comfortable with Django, don't switch. There's no need since with django you can basically achieve anything. Of course this will depend on the project you want to build, but the scalability and flexibility django can offer it's just out of this world. (Don't want to sound like a fan boy haha but it really is).

See more
Vue.js
Vue.js
React
React
PHP
PHP
Laravel
Laravel
Node.js
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

See more
Interest over time
Reviews of GraphQL and Laravel
Review ofLaravelLaravel

I moved from .NET and Rails to Laravel, and since then never thought to go back. I feel Laravel framework has the capability to overcome all modern frameworks.

At Soft Pyramid we are developing rich business applications using Laravel Framework, and never feel any limitation even for complex reporting.We have written REST apis, complex ERP solutions and found awsome in all areas.

How developers use GraphQL and Laravel
Avatar of BrightMachine
BrightMachine uses LaravelLaravel

The best PHP framework right now, intuitive and growing up quickly.

We use Laravel in the outer layer of our Clean Architecture codebases, whereby the domain model does not rely on the framework as a whole.

Avatar of Kent Steiner
Kent Steiner uses LaravelLaravel

See "PHP", I don't really choose to use it, but I can step in and operate in Laravel when necessary. Same goes for quite a few other PHP frameworks, including my own full-featured proprietary stack.

Avatar of jasonmjohnson
jasonmjohnson uses GraphQLGraphQL

GraphQL will be used as the public API for the data persistence layer. It communicates nicely with all other languages and can provide API responses in the format specified in the request.

Avatar of Nicholas Alexander
Nicholas Alexander uses LaravelLaravel

An excellent PHP framework employing SOLID principles to rapidly develop web-site systems and connect them to databases. Custom development of admin screens for website management.

Avatar of Doug Bromley
Doug Bromley uses LaravelLaravel

A clean, easy to understand, well documented framework with excellent tools and a great community providing every imaginable extension to add functionality to your project.

Avatar of Jake Taylor
Jake Taylor uses LaravelLaravel

Laravel is the PHP framework we use. It speeds up development and simplifies a lot of PHP. Complicated at first but saves time once you're comfortable with it.

Avatar of Nick De Cooman
Nick De Cooman uses GraphQLGraphQL

Applied GraphQL in a side-project I'm currently working on. Using the Apollo GraphQL implementation for both server-side and React client.

Avatar of Hevelop
Hevelop uses GraphQLGraphQL

From Magento 2.3 GraphQL is provider by a core implementation, this is used to implement PWA frontend.

Avatar of Told
Told uses GraphQLGraphQL

We use GraphQL as our transport standard for all API calls.

Avatar of Michael Manges
Michael Manges uses GraphQLGraphQL

Connecting my Gatsby site to GraphCMS.

How much does GraphQL cost?
How much does Laravel cost?
Pricing unavailable
Pricing unavailable