opencodeco / phpctl Goto Github PK
View Code? Open in Web Editor NEW๐ณ It is a Docker (containers) based development environment for PHP ๐
Home Page: https://phpctl.dev
License: MIT License
๐ณ It is a Docker (containers) based development environment for PHP ๐
Home Page: https://phpctl.dev
License: MIT License
The addition of GNU/Parallel (01b9ce7) breaks the Makefile in systems that do not have it installed.
$ make build
/bin/sh: parallel: command not found
make: *** [build] Error 127
I suggest either adding a note to README.md or a fallback strategy.
**phpctl server 8000 ./public**
Running opencodeco/phpctl:php82
[Thu Feb 1 21:56:35 2024] PHP 8.2.15 Development Server (http://0.0.0.0:8000) started
Chrome show as: ERR_CONNECTION_REFUSED
http://127.0.0.1:8000
http://localhost:8000
Originally posted by @fhferreira in #9 (comment)
**phpctl frankenphp**
this didn't works in macos + valet apparently.
**
Running opencodeco/phpctl:frankenphp
2024/02/01 21:51:40.853 INFO using provided configuration {"config_file": "/etc/caddy/Caddyfile", "config_adapter": "caddyfile"}
2024/02/01 21:51:40.855 WARN Caddyfile input is not formatted; run 'caddy fmt --overwrite' to fix inconsistencies {"adapter": "caddyfile", "file": "/etc/caddy/Caddyfile", "line": 16}
2024/02/01 21:51:40.856 INFO admin admin endpoint started {"address": "localhost:2019", "enforce_origin": false, "origins": ["//localhost:2019", "//[::1]:2019", "//127.0.0.1:2019"]}
2024/02/01 21:51:40.857 INFO http.auto_https server is listening only on the HTTPS port but has no TLS connection policies; adding one to enable TLS {"server_name": "srv0", "https_port": 443}
2024/02/01 21:51:40.857 INFO http.auto_https enabling automatic HTTP->HTTPS redirects {"server_name": "srv0"}
2024/02/01 21:51:40.857 INFO tls.cache.maintenance started background certificate maintenance {"cache": "0xc0002a0c00"}
2024/02/01 21:51:40.859 INFO FrankenPHP started ๐ {"php_version": "8.3.1"}
2024/02/01 21:51:40.863 INFO tls cleaning storage unit {"storage": "FileStorage:/data/caddy"}
2024/02/01 21:51:40.863 INFO tls finished cleaning storage units
2024/02/01 21:51:40.876 WARN pki.ca.local installing root certificate (you might be prompted for password) {"path": "storage:pki/authorities/local/root.crt"}
2024/02/01 21:51:40.876 ERROR pki.ca.local failed to install root certificate {"error": "open /var/folders/zl/wshf2ff55gx4plj7m5ycw6q40000gn/T/truststore.1013322764.pem: no such file or directory", "certificate_file": "storage:pki/authorities/local/root.crt"}
2024/02/01 21:51:40.876 INFO http enabling HTTP/3 listener {"addr": ":443"}
2024/02/01 21:51:40.876 INFO failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 2048 kiB, got: 416 kiB). See https://github.com/quic-go/quic-go/wiki/UDP-Buffer-Sizes for details.
2024/02/01 21:51:40.877 INFO http.log server running {"name": "srv0", "protocols": ["h1", "h2", "h3"]}
2024/02/01 21:51:40.877 INFO http.log server running {"name": "remaining_auto_https_redirects", "protocols": ["h1", "h2", "h3"]}
2024/02/01 21:51:40.877 INFO http enabling automatic TLS certificate management {"domains": ["localhost"]}
2024/02/01 21:51:40.878 INFO autosaved config (load with --resume flag) {"file": "/config/caddy/autosave.json"}
2024/02/01 21:51:40.878 INFO serving initial configuration
2024/02/01 21:51:40.878 INFO tls.obtain acquiring lock {"identifier": "localhost"}
2024/02/01 21:51:40.880 INFO tls.obtain lock acquired {"identifier": "localhost"}
2024/02/01 21:51:40.880 INFO tls.obtain obtaining certificate {"identifier": "localhost"}
2024/02/01 21:51:40.882 INFO tls.obtain certificate obtained successfully {"identifier": "localhost"}
2024/02/01 21:51:40.882 INFO tls.obtain releasing lock {"identifier": "localhost"}
2024/02/01 21:51:40.883 WARN tls stapling OCSP {"error": "no OCSP stapling for [localhost]: no OCSP server specified in certificate", "identifiers": ["localhost"]}
**
Originally posted by @fhferreira in #9 (comment)
Installed as per the readme instructions, that is runnning the following command:
wget -q https://phpctl.dev/phpctl-installer.sh && \ bash phpctl-installer.sh && rm phpctl-installer.sh
If I run for example phpctl php -m
I get
docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "sh": executable file not found in $PATH: unknown.
Every command returns the same.
If a Git hook calls php
, which will call phpctl
and its docker run -it
(default), it will break with:
the input device is not a TTY
In PHP, the GD (Graphics Draw) extension is a library that enables developers to create and manipulate images dynamically.
The GD extension in PHP is important for several reasons:
O.S.: Mac Sonoma 14.2.1 (23C71)
when i run:
valet start
the output is:
Error finding executable PHP. Quitting for safety.
Provided output from find-usable-php.php:
sh: 32mopencodeco/phpctl:php82: not foundopen input file: Running
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.