Skip to content

Instantly share code, notes, and snippets.

View devalade's full-sized avatar
🎯
Focusing

Alade YESSOUFOU devalade

🎯
Focusing
View GitHub Profile
@mpociot
mpociot / codex.sh
Created June 4, 2025 09:06
OpenAI Codex PHP environment setup for Laravel
/bin/bash -c "$(curl -fsSL https://php.new/install/linux)"
export PATH="/root/.config/herd-lite/bin/:$PATH"
composer install
cp .env.example .env
php artisan key:generate
php artisan migrate --seed --force -n
npm install
npm run build
@tonysm
tonysm / Dockerfile
Created December 6, 2024 11:13
Laravel Dockerfile Example
FROM serversideup/php:8.3-fpm-nginx-alpine AS base
ENV AUTORUN_ENABLED=1
ENV PHP_OPCACHE_ENABLE=1
ENV SSL_MODE="off"
USER root
RUN apk add --update busybox-suid && \
install-php-extensions bcmath gd exif
@JustSteveKing
JustSteveKing / ApiRenderer.php
Last active April 5, 2025 13:01
Handling Errors in Laravel
<?php
declare(strict_types=1);
namespace App\Exceptions\Rendering;
use Illuminate\Contracts\Support\Responsable;
use Illuminate\Http\Request;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Throwable;
@hoandang
hoandang / php-docker-ext
Created May 20, 2017 01:12
Complete list of php docker ext
RUN apt update
RUN apt upgrade -y
RUN apt install -y apt-utils
RUN a2enmod rewrite
RUN apt install -y libmcrypt-dev
RUN docker-php-ext-install mcrypt
RUN apt install -y libicu-dev
RUN docker-php-ext-install -j$(nproc) intl
RUN apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng12-dev
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/