Open in app

Sign In

Write

Sign In

Freek Van der Herten
Freek Van der Herten

2.9K Followers

Home

About

Jan 22, 2019

Introducing phpx: implementing Phoenix’ LiveView in PHP

Christopher Pitt has created a new package called phpx that bring the power of LiveView to PHP. A few days ago, Caleb Porzio demonstrated some work he’s been doing; to replicate Phoenix LiveView in Laravel. I’ve been building PHP preprocessor stuff for a long time, and this really inspired me to try the same thing. "What is this s#*t?!" A few days ago, Caleb Porzio demonstrated some work he's been doing; to replicate Phoenix LiveView in Laravel. I've…assertchris.io

PHP

1 min read

PHP

1 min read


Jan 22, 2019

How migrations might be slowing down your Laravel tests

Having a lot of migrations might slow down your tests. My colleague Alex shares how you can fix this. One of the larger test suites I run daily has about 1500 tests in it. It takes just over 4 minutes to complete at an average of 160ms per test. That’s pretty good. However, lately I’ve noticed a delay between starting PHPUnit and running the first test. This delay grew to the point where running a single test would take almost 12 seconds with the setUp method using most of that time on… migrations.

Testing

1 min read

Testing

1 min read


Jan 21, 2019

Tools to automatically format PHP, JavaScript and CSS files

When working on a project with other people, it’s important to pick a coding standard. A coding standard like PSR-2 in the PHP world specifies rules on where certain characters, like braces of an if statement, or comma's should be put. Agreeing on a coding standard makes the code more…

PHP

4 min read

PHP

4 min read


Jan 17, 2019

Manually create validator responses

Laravel

1 min read

Laravel

1 min read


Jan 17, 2019

Q&A on the Book Refactoring — Second Edition

Refactoring is an excellent book written by Martin Fowler. He recently released a second edition. I’m reading it now and can recommend it to anyone interested in writing better code. Here’s an interview with the author on the second edition of the book. InfoQ interviewed Fowler about the major changes in the 2nd edition of Refactoring, how to recognize code smells and refactor code, how code reviews and refactoring support each other, what tech leads can do to encourage refactoring, the benefits refactoring brings, using tools for refactoring, and mob programming.

Refactor

1 min read

Refactor

1 min read


Jan 17, 2019

Proof of Concept: Phoenix LiveView for Laravel

Here’s a cool video by Caleb Porzio where he demonstrates his proof of concept port of Phoenix LiveView in Laravel. I recently read through this blog post about Phoenix LiveView and got really excited for what might be possible in Laravel. I started hacking on a little proof of concept in Laravel and quickly realized this might be a game changer. Proof of Concept: Phoenix LiveView for Laravel I recently read through this blog post about Phoenix LiveView and got really excited for what might be possible in…calebporzio.com

PHP

1 min read

PHP

1 min read


Jan 15, 2019

Hexagonal architecture

The main thought behind hexagonal architecture is that by isolation the core logic of your app, adding more inputs (like an API or console app) or outputs becomes much easier. Here’s a cool talk Mattias Noback gave a few years ago at SymfonyLive on the topic.

Best Practices

1 min read

Best Practices

1 min read


Jan 14, 2019

Phoenix LiveView: Interactive, Real-Time Apps. No Need to Write JavaScript.

Chris McCord, author of the Phoenix Framework, will soon release a new feature called LiveView: a way of making interactive apps without JavaScript. It’s powered by WebSockets, morphdom Phoenix LiveView is an exciting new library which enables rich, real-time user experiences with server-rendered HTML. LiveView powered applications are stateful on the server with bidrectional communication via WebSockets, offering a vastly simplified programming model compared to JavaScript alternatives. While modern JavaScript tooling enables sophisticated client applications, it often comes at an extreme cost in complexity and maintainability

Phoenix

1 min read

Phoenix

1 min read


Jan 14, 2019

Phoenix LiveView: Interactive, Real-Time Apps. No Need to Write JavaScript.

Chris McCord, author of the Phoenix Framework, will soon release a new feature called LiveView: a way of making interactive apps without JavaScript. It’s powered by WebSockets, morphdom Phoenix LiveView is an exciting new library which enables rich, real-time user experiences with server-rendered HTML. LiveView powered applications are stateful on the server with bidrectional communication via WebSockets, offering a vastly simplified programming model compared to JavaScript alternatives. While modern JavaScript tooling enables sophisticated client applications, it often comes at an extreme cost in complexity and maintainability

Phoenix

1 min read

Phoenix

1 min read


Jan 10, 2019

Tips to Speed up Your Phpunit Tests

On the Laravel News blog, Tim MacDonald wrote a nice collection of tips on how to make PHPUnit tests run faster. Having a fast test suite can be just as important as having a fast application. As a developer, getting feedback quickly about the state of your code allows for a much quicker development turnaround. Here we are going to run through some tips you can implement today to make your tests run faster.

PHP

1 min read

PHP

1 min read

Freek Van der Herten

Freek Van der Herten

2.9K Followers

PHP developer and Laravel enthousiast at https://spatie.be, blogging at https://murze.be

Following
  • Jeroen Corthout

    Jeroen Corthout

  • Jean-Louis Gassée

    Jean-Louis Gassée

  • Michael Stivala

    Michael Stivala

  • Vishnu Padmanabhan

    Vishnu Padmanabhan

  • Oh Dear!

    Oh Dear!

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech