HN user

philo01

43 karma

Twitter: https://twitter.com/Philo01 Founder Anystack (https://anystack.sh)

Posts4
Comments17
View on HN

I've been using Laravel for 10 years+ and couldn't be happier about how the framework and community evolved. The community has many kind and awesome people who love sharing their knowledge and pushing Laravel and PHP forward. In other words, PHP isn't dead; far from it, PHP is very much alive, and I think Laravel and the community are one of the primary reasons why the language is still thriving; Laravel forever!

[dead] 3 years ago

Livewire v3 has just been announced at Laracon by Caleb Porzio. There are a ton of amazing new features so let's take a look.

In this article, we will go through the steps required to add license validation and auto-update functionality to your WordPress plugin. We will cover the licensing system setup, the implementation of license validation and auto-update features using Anystack’s plug and play library. By the end of this article, you will have the knowledge required to protect your plugin from unwanted usage and provide a seamless auto-update user experience for your users.

Agree, it all depends on your use case. Docker is amazing for projects that require services that are difficult to install, configure and maintain on your main OS.

Porter is ideal for those already running these services on their main OS and just need something to run and manage these services more easily.

Good point, I think there are many approaches to solving this problem, and every approach having pros and cons. I'm adding some additional features like auto restart when files are modified but overall I agree that this simplified config format can be nice for teams who don't want to have to contend with the process supervisor in all its complexity.

I think it's worth installing software on your OS if your situation allows for it. I mostly use PHP and NodeJS, which are easy to manage with tools like Laravel Valet or nvm. I've been doing this for years and love it. I can imagine that if you have various difficult services to install and maintain on your main OS, using Docker is a more convenient solution.

Thanks! After I started building and sharing my progress on Twitter some did suggest foreman. I just took a quick look and I think Porter is a bit easier to use because of the porter.yml file you can add to every project. Which may read a bit easier compared to the procfiles. One or two other advantages could be the interval restart feature, where you can restart services automatically after a certain interval (useful for unstable services). The second advantages is something I'm working on at the moment, where you can define processes to restart if certain files have been modified.

Good tip! I haven't heard of Skaffold but it looks like an interesting alternative. Skaffold seems to offer a great amount of features but it might be a steep learning curve for beginners. Porter is not meant to be a replacement for docker-compose, it's more focused towards those who don't use Docker and want an easy way to run certain processes.

Good question, I think there are many different approach on solving running multiple services. So it boils down to what you need, and what works for you. One advantage might be the ease of use. Using Porter you don't need to know anything about Supervisor, systemd or other more technical implementations. Porter abstracts away these things so you only have to write a simple .yml file.

I don't think it has many advantages over Docker compose besides maybe the auto restart option and I'm working on adding file monitoring as well, so you can set files or directories to monitor and once chances occur the service restarts. I don't use Docker locally myself and wanted to have a solution for making it easier to manage background processes and not having to spin up five shells.

Why I wrote a tool like this in PHP is simple, I love PHP and I'm a big fan of the ecosystem / community.

Porter is a command-line interface (CLI) tool that makes it easy to run background services by adding a few lines to a configuration file. These services are managed by Supervisord, a process control system that ensures that all processes are kept up and running. With Porter, you don't have to manually start and manage background services in multiple terminal tabs. Instead, you can simply use the porter command to manage all of your services in a single place.