Skip to content

Instantly share code, notes, and snippets.

Christian Lück clue

Block or report user

Report or block clue

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@clue
clue / 2018-08-14 introducing-reactphp-csv.md
Last active Jun 3, 2019
Introducing streaming CSV with ReactPHP
View 2018-08-14 introducing-reactphp-csv.md

I'm happy to announce the very first stable release of clue/reactphp-csv 🎉

Streaming CSV (Comma-Separated Values or Character-Separated Values) parser and encoder for ReactPHP.

Now that v1.0.0 has been tagged and released today, let's look into what CSV is, how it compares to other formats such as NDJSON and how CSV can be used in PHP and @ReactPHP.

CSV format

CSV (Comma-Separated Values or less commonly Character-Separated Values) is a very simple text-based format for storing a large number of (uniform) records, such as a list of user records or log entries.

@clue
clue / 2019-05-14 introducing-reactphp-sqlite.md
Last active May 14, 2019
Introducing async SQLite database for ReactPHP
View 2019-05-14 introducing-reactphp-sqlite.md

Today, I'm happy to announce the very first stable v1.0.0 release of clue/reactphp-sqlite, the async SQLite database for ReactPHP 🎉

Now that v1.0.0 has been tagged and released today, let's take a look at how we can use an async SQLite database in a non-blocking PHP application, how it compares to other databases and why I think @ReactPHP's design makes it a perfect fit.

About SQLite

SQLite is a widespread and efficient in-process database. It offers a common SQL interface to process queries to work with its relational data in memory or persist to a simple, portable database file. Its lightweight design makes it an ideal candidate for an embedded database in portable (CLI) applications, test environments and much more.

This library provides you a simple API to work with your SQLite database from within PHP. Because working with SQLite and the underlying filesystem is inherently bl

@clue
clue / 2019-03-11 introducting-reactphp-redis.md
Last active May 14, 2019
Introducing async Redis database client for ReactPHP
View 2019-03-11 introducting-reactphp-redis.md

Today, I'm happy to announce the v2.3.0 release of clue/reactphp-redis, the async Redis database client built on top of ReactPHP 🎉

Once again, the version number and its release history suggests this is not exactly a new project. In fact, this has been used in production in a larger number of projects for a few years already. So I guess it's about time to write an introductory blog post about this project, what Redis is all about and why I think @ReactPHP's design makes it a perfect fit.

About Redis

Redis is an open source, advanced, in-memory key-value database. It offers a set of simple, atomic operations in order to work with its primitive data types. Its lightweight design and fast operation makes it an ideal candidate for modern application stacks.

This library provides you a simple API to work with your Redis database from within PHP. It

View 2018-05-24 privacy-policy.md

We are very delighted that you have shown interest in our enterprise. Data protection is of a particularly high priority for the management of the clue·engineering (Christian Lück). The use of the Internet pages of the clue·engineering (Christian Lück) is possible without any indication of personal data; however, if a data subject wants to use special enterprise services via our website, processing of personal data could become necessary. If the processing of personal data is necessary and there is no statutory basis for such processing, we generally obtain consent from the data subject.

The processing of personal data, such as the name, address, e-mail address, or telephone number of a data subject shall always be in line with the General Data Protection Regulation (GDPR), and in accordance with the country-specific data protection regulations applicable to the clue·engineering (Christian Lück). By means of this data protection declaration, our enterprise would like to inform the general public of

@clue
clue / 2018-05-25 introducing-reactphp-flux.md
Last active Apr 14, 2019
Introducing concurrent stream processing with ReactPHP and Flux
View 2018-05-25 introducing-reactphp-flux.md

I'm happy to announce the very first stable release of clue/reactphp-flux 🎉

Flux, the lightweight stream processor to concurrently do many (but not too many) things at once, built on top of ReactPHP.

Now that v1.0.0 has been tagged and released today, let's look into why streaming processing is useful, how this compares to keeping many operations in memory and how this can be used to process a large number of operations with @ReactPHP.

Concurrency with ReactPHP

In one of the previous posts, we've looked into doing many (but not too many) things concurrently with ReactPHP. If you're new to the concept of concurrently processing multipe things at once with ReactPHP, go check out that post, I'll wait.

@clue
clue / 2018-05-17 introducing-ndjson-reactphp.md
Last active Apr 5, 2019
Introducing streaming newline-delimited JSON (NDJSON) with ReactPHP
View 2018-05-17 introducing-ndjson-reactphp.md

I'm happy to announce the very first stable release of clue/reactphp-ndjson 🎉

Streaming newline-delimited JSON (NDJSON) parser and encoder for ReactPHP.

Now that v1.0.0 has been tagged and released today, let's look into what NDJSON is, how it compares to other formats such as JSON, CSV etc. and how NDJSON can be used in PHP and @ReactPHP.

Introduction to NDJSON

NDJSON vs. JSON

@clue
clue / 2018-04-13 getting-started-with-reactphp-workshop-phpyorkshire.md
Last active Feb 12, 2019
Getting started with ReactPHP – Pushing real-time data to the browser (PHPYorkshire)
View 2018-04-13 getting-started-with-reactphp-workshop-phpyorkshire.md

Think about "PHP" for a few seconds… What came to mind? It’s very likely you thought about your average product catalog, a blogging platform or how the platform is inferior to things like Node.js. But wait, it’s 2018! What if I told you PHP’s huge ecosystem has way more to offer and PHP is not inferior at all to its evil cousin Node.js?

Hands-on workshop given at PHPYorkshire (2018-04-13)

Getting started with ReactPHP – Pushing real-time data to the browser

In this hands-on tutorial you will learn about the core concepts of async PHP and why you too should care about ReactPHP being a real thing. The workshop has a strong focus on sparking the idea that PHP can be way faster and more versatile than you probably thought. Bring along an open mind and through lots of interesting examples and live demos learn why what sounds crazy at first might soon be a valuable addition in your toolbox.

You’re already familiar with PHP and want to learn what ReactPHP is all about? Then this tutorial is for you! We will

@clue
clue / 2019-01-14 introducing-reactphp-child-process.md
Last active Jan 14, 2019
Introducing event-driven child process for ReactPHP
View 2019-01-14 introducing-reactphp-child-process.md

Today, we're very happy to announce the immediate availability of the next major beta release of reactphp/child-process, the event-driven library for executing child processes with ReactPHP. 🎉

ReactPHP ❤️ Windows

As the main feature of this v0.6.0 release, this library now has limited Windows support and supports passing custom pipes and file descriptors to the child process. Let's look into why we think this is a major milestone for this project and how this can be used to spawn a child process to offload a blocking process in a non-blocking way with ReactPHP.

This post aims more for the "why" instead of "what" has changed. This release involves a few minor BC breaks, but we expect that most consumers of this package will actually not be affected. If you're upgrading from a previous version of this project, you may want to take a look at the changelog describing all

View 2018-01-07 introducing-tls-1-3-for-reactphp.md

Today, we're very happy to announce the immediate availability of the next v1.2.0 feature release of reactphp/socket, the async, streaming plaintext TCP/IP and secure TLS socket server and client for ReactPHP. 🎉

As the main feature of this release, this library now has improved support for secure TLS 1.3 connections for both server side connections as well as client side connections. TLS 1.3 is an official standard as of August 2018. The protocol has major improvements in the areas of security, performance, and privacy. It is an exciting protocol update that we can expect to benefit from for years to come. Not only will encrypted connections (such as HTTPS) become faster, but they will also be more secure. If you want to learn more about TLS 1.3, see also CloudFlare's excellent introduction.

As a

@clue
clue / 2019-01-01 2018-in-review.md
Last active Jan 1, 2019
2018 - A Year In Review
View 2019-01-01 2018-in-review.md

Without further ado, let me start with saying:

<?php

echo 'Happy New Year! 🎉';

Now with a fresh start, let's take a moment to review some of my highlights of the past year. In 2018…

You can’t perform that action at this time.