Skip to content

Latest commit

 

History

History
59 lines (46 loc) · 1.91 KB

README.md

File metadata and controls

59 lines (46 loc) · 1.91 KB

libphp

🐘 PHP library compiled for many platform and cloud providers, especially for AWS and ▲ Vercel.

🕹 f3l1x.io | 💻 f3l1x | 🐦 @xf3l1x


⚙️ Runtimes

⚙️ Usage

This repository contains libraries for building PHP layers in clouds (AWS, ...). You can build your package/library based on these libraries.

For example @libphp/amazon-linux-2-v83. Used in vercel-php a PHP runtime for Vercel platform.

import * as php from "@libphp/amazon-linux-2-v83";

// @libphp/amazon-linux-2-v82
// ├── dist
// │   └── *.js
// └── native
//     ├── lib
//     │   └── * (shared libs)
//     └── php
//         ├── modules
//         │   └── *.so (php modules)
//         ├── composer
//         ├── php.ini
//         ├── php
//         ├── php-cgi
//         ├── php-fpm
//         └── php-fpm.ini

php.getRoot(); // root folder
php.getComposer(); // composer bin
php.getPhpFiles(); // list of all PHP files
php.getPhpModulesFiles(); // list of all PHP modules
php.getSharedLibsFiles(); // list of all shared libs
php.getFiles(); // list of all related files

📝 License

Copyright © 2020 f3l1x. This project is MIT licensed.