Skip to content

Instantly share code, notes, and snippets.

Sleeping Here!

Olatunbosun Egberinde bosunski

Sleeping Here!
Block or report user

Report or block bosunski

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
View font.css
@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
View Atom-Settings.txt
gist token=1d177d749a5d57a8676fa77f737892c285eb1376
gist id=a53f646ca33cd140560d78eeed5a9c5b
bosunski / closure_callable.php
Created Jun 13, 2019
A brief explannation of Callables and Closures.
View closure_callable.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'];
bosunski / promise.php
Last active Jun 11, 2019
Describes a Promise
View promise.php
class Promise {
private $resolvedStack = [];
private $catches = [];
public function then(callable $resolved): Promise
array_push($this->resolvedStack, $resolved);

Things Used

  • GitHub - For Source hosting
  • Digital Ocean - For Hosting
  • MailGun - For mails processed on the Server, both for sending and Receiving
  • Travis CI - For Continuous integration and Auto deployment
  • WhogoHost - For Domain Name
  • Paystack - For Payment Processing
  • Laravel - Framework the app is built upon
  • Redis - For Queues
  • MySQL - For Database
bosunski /
Created Feb 13, 2019 — forked from irazasyed/
Homebrew: Permissions Denied Issue Fix (OS X / macOS)

Homebrew Permissions Denied Issues Solution

sudo chown -R $(whoami) $(brew --prefix)/*

View detectNewLineUpdatesOnFile.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:

bosunski /
Created Oct 30, 2018 — forked from davejamesmiller/
Laravel's Dependency Injection Container in Depth

Laravel's Dependency Injection Container in Depth

Translations: Korean (by Yongwoo Lee)

Laravel has a powerful Inversion of Control (IoC) / Dependency Injection (DI) Container. Unfortunately the official documentation doesn't cover all of the available functionality, so I decided to experiment with it and document it for myself. The following is based on Laravel 5.4.26 - other versions may vary.

Introduction to Dependency Injection

I won't attempt to explain the principles behind DI / IoC here - if you're not familiar with them you might want to read What is Dependency Injection? by Fabien Potencier (creator of the Symfony framework).

bosunski / 2018-10-24
Last active Oct 25, 2018 — forked from clue/2018-10-24
Introducing async HTTP requests with ReactPHP
View 2018-10-24

Today, I'm happy to announce the v2.5.0 release of clue/reactphp-buzz 🎉

Simple, async PSR-7 HTTP client for concurrently processing any number of HTTP requests, built on top of ReactPHP.

As the version number 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, why async HTTP requests are such a powerful feature and also a bit about the motivation for this project and why I think @ReactPHP is a perfect fit for sending HTTP requests.

HTTP all the things!

I'm probably not telling you something new when I say the web is built on top of HTTP. This blog post is served over HTTP. Your YouTube videos are served over HTTP. Your downloads are served over HTTP. RESTful backend APIs are served over HTTP. GraphQL APIs are served over HTTP. SOAP APIs are served over HTTP. Yes,

You can’t perform that action at this time.