Skip to content
ZEIT Now PHP builder β€’ now-php β€’ 🐘+ Ξ» = ❀
TypeScript Makefile JavaScript Shell PHP
Branch: master
Clone or download
Latest commit 4adb482 Aug 23, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs Readme: improvements Jul 27, 2019
errors Fix typo in error description (#2) Jul 29, 2019
examples [php] bugfix definining and accessing php file inside the folder Aug 23, 2019
packages [php] added special PHP form npm publish Aug 23, 2019
test Tests: fix after big refactoring Aug 16, 2019
.editorconfig QA: indent ts as js Aug 20, 2019
.gitignore Refactoring: backport packages from juicyfx/now-builders, move to spe… Aug 16, 2019
CHANGELOG.md [php] bump v0.0.2 Aug 23, 2019
LICENSE
README.md Readme: document php.ini Aug 23, 2019
package-lock.json Refactoring: backport packages from juicyfx/now-builders, move to spe… Aug 16, 2019
package.json Tests: fix after big refactoring Aug 16, 2019

README.md

ZEIT Now PHP

Enjoyable & powerful 🐘 PHP builder for ZEIT Now.

πŸ•Ή f3l1x.io | πŸ’» f3l1x | 🐦 @xf3l1x

npm npm (tag) npm (tag)

πŸ™‹ ROADMAP | CHANGELOG

🐣 Versions

Pkg Tag Stability Info
βœ… now-php latest production Rock-solid stable.
πŸ”₯ now-php canary testing For early-adopters.
⚠️ now-php experimental development Testing and high danger.

Need to know how things are changing? Here is changelog.

πŸ€— Features

  • Architecture: PHP development server (πŸš€ fast enought)
  • PHP version: 7.3.7
  • Extensions: apcu, bcmath, bz2, calendar, Core, ctype, curl, date, dom, ds, exif, fileinfo, filter, ftp, gettext, hash, iconv, json, libxml, mbstring, mysqli, mysqlnd, openssl, pcntl, pcre, PDO, pdo_mysql, pdo_pgsql, pdo_sqlite, phalcon, Phar, readline, Reflection, session, SimpleXML, soap, sockets, sodium, SPL, sqlite3, ssh2, standard, swoole, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend OPcache, zlib
  • Speed: cold ~250ms / warm ~5ms
  • Memory: ~90mb

List of all installable extensions is on this page https://blog.remirepo.net/pages/PECL-extensions-RPM-status.

βš™οΈ Usage

{
  "version": 2,
  "builds": [
    { "src": "index.php", "use": "now-php" }
  ]
}

Configuration

{
  "version": 2,
  "builds": [
    {
      "src": "index.php",
      "use": "now-php",
      "config": {
        "composer": true,
        "php.ini": {
            "memory_limit": "128M",
            "post_max_size": "32M"
        }
      }
    }
  ]
}
  • composer [optional]
    • Force composer install
    • Type: boolean
    • Default: false
    • Values: true/false
    • Info: Composer is detected by presence of file composer.json. You can force it defining config.composer for the build.
  • php.ini [optional]

πŸ‘¨β€πŸ’»now dev

For running now dev properly, you need to have PHP installed on your computer, learn more.

πŸ‘€ Examples

Browse more examples. πŸ‘€

🚧 Roadmap

  • next-gen PHP builder βœ…
  • Composer
    • config.composer: true βœ…
    • composer.json detection βœ…
  • zero config βœ…
  • now dev βœ…
  • rewrite to typescript βœ…

Help wanted

  • create many examples (majority frameworks and other use-cases)
  • cover by tests

πŸ‘¨πŸ»β€πŸ’»CHANGELOG

Show me CHANGELOG

πŸ“ License

Copyright Β© 2019 f3l1x. This project is MIT licensed.

You can’t perform that action at this time.