Get Advice Icon

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

Hack
Hack

79
49
+ 1
27
Laravel
Laravel

7.3K
4.5K
+ 1
2.8K
Add tool

Hack vs Laravel: What are the differences?

Developers describe Hack as "A programming language for HHVM that interoperates seamlessly with PHP". Hack provides instantaneous type checking via a local server that watches the filesystem. It typically runs in less than 200 milliseconds, making it easy to integrate into your development workflow without introducing a noticeable delay. 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.

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

"Interoperates seamlessly with php" is the top reason why over 5 developers like Hack, while over 420 developers mention "Clean architecture" as the leading cause for choosing Laravel.

Laravel is an open source tool with 53.4K GitHub stars and 16.4K GitHub forks. Here's a link to Laravel's open source repository on GitHub.

According to the StackShare community, Laravel has a broader approval, being mentioned in 831 company stacks & 773 developers stacks; compared to Hack, which is listed in 8 company stacks and 3 developer stacks.

- No public GitHub repository available -

What is Hack?

Hack provides instantaneous type checking via a local server that watches the filesystem. It typically runs in less than 200 milliseconds, making it easy to integrate into your development workflow without introducing a noticeable delay.

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 Hack?
Why do developers choose Laravel?

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

    Be the first to leave a con

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

    What companies use Hack?
    What companies use Laravel?

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

    What tools integrate with Hack?
    What tools integrate with Laravel?

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

    What are some alternatives to Hack and Laravel?
    PHP
    Fast, flexible and pragmatic, PHP powers everything from your blog to the most popular websites in the world.
    JavaScript
    JavaScript is most known as the scripting language for Web pages, but used in many non-browser environments as well such as node.js or Apache CouchDB. It is a prototype-based, multi-paradigm scripting language that is dynamic,and supports object-oriented, imperative, and functional programming styles.
    Python
    Python is a general purpose programming language created by Guido Van Rossum. Python is most praised for its elegant syntax and readable code, if you are just beginning your programming career python suits you best.
    Java
    Java is a programming language and computing platform first released by Sun Microsystems in 1995. There are lots of applications and websites that will not work unless you have Java installed, and more are created every day. Java is fast, secure, and reliable. From laptops to datacenters, game consoles to scientific supercomputers, cell phones to the Internet, Java is everywhere!
    HTML5
    HTML5 is a core technology markup language of the Internet used for structuring and presenting content for the World Wide Web. As of October 2014 this is the final and complete fifth revision of the HTML standard of the World Wide Web Consortium (W3C). The previous version, HTML 4, was standardised in 1997.
    See all alternatives
    Decisions about Hack and Laravel
    StackShare Editors
    StackShare Editors
    HHVM (HipHop Virtual Machine)
    HHVM (HipHop Virtual Machine)
    Hack
    Hack
    PHP
    PHP

    Throughout 2016, Slack began migrating from PHP5 to Hack. They cite several well-known challenges inherent to PHP, including surprise type conversions, inconsistency around reference semantics, inconsistencies in the standard library, and the fact that “PHP tries very, very hard to keep the request running, even if it has done something deeply strange.”

    To overcome these challenges while maintaining the unique values of PHP, Slack turned to Hack, a gradual typing system for PHP. Hack runs on the HipHop Virtual Machine, or HHVM, an open source just-in-time (JIT) environment for PHP.

    See more
    Antonio Sanchez
    Antonio Sanchez
    CEO at Kokoen GmbH · | 10 upvotes · 71.5K views
    atKokoen GmbHKokoen GmbH
    ExpressJS
    ExpressJS
    Node.js
    Node.js
    JavaScript
    JavaScript
    MongoDB
    MongoDB
    Go
    Go
    MySQL
    MySQL
    Laravel
    Laravel
    PHP
    PHP

    Back at the start of 2017, we decided to create a web-based tool for the SEO OnPage analysis of our clients' websites. We had over 2.000 websites to analyze, so we had to perform thousands of requests to get every single page from those websites, process the information and save the big amounts of data somewhere.

    Very soon we realized that the initial chosen script language and database, PHP, Laravel and MySQL, was not going to be able to cope efficiently with such a task.

    By that time, we were doing some experiments for other projects with a language we had recently get to know, Go , so we decided to get a try and code the crawler using it. It was fantastic, we could process much more data with way less CPU power and in less time. By using the concurrency abilites that the language has to offers, we could also do more Http requests in less time.

    Unfortunately, I have no comparison numbers to show about the performance differences between Go and PHP since the difference was so clear from the beginning and that we didn't feel the need to do further comparison tests nor document it. We just switched fully to Go.

    There was still a problem: despite the big amount of Data we were generating, MySQL was performing very well, but as we were adding more and more features to the software and with those features more and more different type of data to save, it was a nightmare for the database architects to structure everything correctly on the database, so it was clear what we had to do next: switch to a NoSQL database. So we switched to MongoDB, and it was also fantastic: we were expending almost zero time in thinking how to structure the Database and the performance also seemed to be better, but again, I have no comparison numbers to show due to the lack of time.

    We also decided to switch the website from PHP and Laravel to JavaScript and Node.js and ExpressJS since working with the JSON Data that we were saving now in the Database would be easier.

    As of now, we don't only use the tool intern but we also opened it for everyone to use for free: https://tool-seo.com

    See more
    StackShare Editors
    StackShare Editors
    Apache Thrift
    Apache Thrift
    Kotlin
    Kotlin
    Presto
    Presto
    HHVM (HipHop Virtual Machine)
    HHVM (HipHop Virtual Machine)
    gRPC
    gRPC
    Kubernetes
    Kubernetes
    Apache Spark
    Apache Spark
    Airflow
    Airflow
    Terraform
    Terraform
    Hadoop
    Hadoop
    Swift
    Swift
    Hack
    Hack
    Memcached
    Memcached
    Consul
    Consul
    Chef
    Chef
    Prometheus
    Prometheus

    Since the beginning, Cal Henderson has been the CTO of Slack. Earlier this year, he commented on a Quora question summarizing their current stack.

    Apps
    • Web: a mix of JavaScript/ES6 and React.
    • Desktop: And Electron to ship it as a desktop application.
    • Android: a mix of Java and Kotlin.
    • iOS: written in a mix of Objective C and Swift.
    Backend
    • The core application and the API written in PHP/Hack that runs on HHVM.
    • The data is stored in MySQL using Vitess.
    • Caching is done using Memcached and MCRouter.
    • The search service takes help from SolrCloud, with various Java services.
    • The messaging system uses WebSockets with many services in Java and Go.
    • Load balancing is done using HAproxy with Consul for configuration.
    • Most services talk to each other over gRPC,
    • Some Thrift and JSON-over-HTTP
    • Voice and video calling service was built in Elixir.
    Data warehouse
    • Built using open source tools including Presto, Spark, Airflow, Hadoop and Kafka.
    Etc
    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 · 480 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 · 28.7K 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 · 352 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 · 504 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 · 259 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
    Interest over time
    Reviews of Hack 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 Hack 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 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.

    How much does Hack cost?
    How much does Laravel cost?
    Pricing unavailable
    Pricing unavailable
    News about Hack
    More news