- Tools Build on React PHP: https://github.com/reactphp/reactphp/wiki/Users
- Laravel Swoole
- Swoft Framework (Built on Swoole)
- Async Articles
{ | |
"event": "charge.success", | |
"data": { | |
"id": 84, | |
"domain": "test", | |
"status": "success", | |
"reference": "9cfbae6e-bbf3-5b41-8aef-d72c1a17650g", | |
"amount": 50000, | |
"message": null, | |
"gateway_response": "Approved", |
<?php | |
/** | |
* Copyright © EcomDev B.V. All rights reserved. | |
* See LICENSE.txt for license details. | |
*/ | |
declare(strict_types=1); | |
$port = $argv[1]; | |
$serverName = $argv[2]; |
@font-face { | |
font-family: "Brandon Text"; | |
src: url(/assets/fonts/BrandonText-Regular.woff2); | |
} | |
@font-face { | |
font-family: Brandon Text; | |
src: url("/assets/fonts/BrandonText-Light.woff2") format("woff2"), url("/assets/fonts/BrandonText-Light.woff") format("woff"); | |
font-weight: 300; | |
font-style: normal |
gist token=1d177d749a5d57a8676fa77f737892c285eb1376 | |
gist id=a53f646ca33cd140560d78eeed5a9c5b |
<?php | |
// An Anonymous Class or Normal Classes | |
$class = new class { | |
public function method() { | |
echo 'In a Class!', PHP_EOL; | |
} | |
}; | |
// We can write this ... 🤔 | |
$arrayLikeCallable = [new $class, 'method']; |
<?php | |
class Promise { | |
private $resolvedStack = []; | |
private $catches = []; | |
public function then(callable $resolved): Promise | |
{ | |
array_push($this->resolvedStack, $resolved); | |
} | |
<?php | |
$fileCache = "LastLine.txt"; | |
$oldLastLine = getLastLine($fileCache); | |
function getLastLine($cachePath) | |
{ | |
if (file_exists($cachePath)) | |
return file_get_contents($cachePath); | |
return 0; |
The Lucid Architecture for Laravel was introduced by Abed Halawi in one of the Laracon event and it grants a laravel app a good way to scale the app in terms of the development flexibility. The architecture follows a Domain Driven design approach.
However, even though Lucid Architecture provides a way you can create a fresh project with Lucid, it's quite difficult to implement on an already running project that wants to try out the Structure. the purpose of this article is to take you through how we can still use Lucid in a well ordered manner without it affecting you app initial setup.
This post is written for as many who will like to implement this clear and simple architecture in their laravel project.
We're going to achieve this in few steps, so follow me tightly: