Sign inSign up

smartnms/swoole

By smartnms

•Updated over 4 years ago

PHP CLI + Swoole for developer with some extensions and composer preinstalled. Swoole 4.4.25

Image
0

1.5K

smartnms/swoole repository overview

⁠Quick start for easyswoole application

⁠1. Create docker compose file

docker-compose.yml

version: '2'
services:
  swoole:
    image: smartnms/swoole
    volumes:
      - "./www/app:/var/www/app"
      - "./cache/composer:/tmp/composer"
    command: "php -m"

⁠2. Testing php information

docker-compose run --rm swoole php -info

⁠3. Install easyswoole

docker-compose run --rm swoole composer require easyswoole/easyswoole
docker-compose run --rm swoole php vendor/bin/easyswoole install
docker-compose run --rm swoole composer dump-autoload

⁠4. Update docker compose file to run your easyswoole application

docker-compose.yml

version: '2'
services:
  swoole:
    image: smartnms/swoole
    volumes:
      - "./www/app:/var/www/app"
      - "./cache/composer:/tmp/composer"
    ports:
      - "9501:9501"
    command: "php easyswoole start"

⁠PHP Modules

bcmath
Core
ctype
curl
date
dom
fileinfo
filter
ftp
gd
hash
iconv
intl
json
libxml
mbstring
mysqlnd
openssl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
readline
redis
Reflection
session
SimpleXML
sodium
SPL
sqlite3
standard
swoole
tokenizer
xml
xmlreader
xmlwriter
zip
zlib

Tag summary

Content type

Image

Digest

Size

246.7 MB

Last updated

over 4 years ago

docker pull smartnms/swoole