Download the PHP package roiwk/webman-sail without Composer

On this page you can find all versions of the php package roiwk/webman-sail. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package webman-sail

简介

Webman Sail 是一个轻量级的命令行界面,用于 Webman 与 Docker 开发环境进行交互。Sail 为使用 PHP,MySQL 和 Redis 构建 Webman 应用程序提供了一个很好的起点,而无需事先具有 Docker 经验。

Sail 的核心是 docker-compose.yml 文件和存储在项目根目录的 sail 脚本。sail 脚本为 CLI 提供了便捷的方法,可用于与 docker-compose.yml 文件定义的 Docker 容器进行交互。

Webman Sail 支持 macOS、Linux 和 Windows (通过 WSL2)。

置顶

  1. 解决"先有鸡,还是先有蛋"问题. 无需系统有php环境,直接建立webman项目(通过docker):

    这将在当前目录下建立一个'example-app'的文件夹, 默认环境为php8.1, mysql,reids的webman项目

安装 & 启动

  1. 安装依赖

  2. webman命令执行 。这个命令用于发布 文件到你应用程序的根目录:

或者直接指定需要安装的服务:

  1. 启动服务。

访问: 即可。 至此,基本的环境安装已经就绪,下来是配置和使用相关的文档:

环境变量

  1. php版本默认使用8.1版本。 默认版本支持 7.4-8.2,更多可查看定制容器; 具体版本按需设置文件中的配置即可。

  2. 数据库配置

执行命令

  1. help,查看支持的指令帮助。

  2. sail === docker-compose 相当于docker-compose指令。

  3. sail === php-cli(container) 链接容器内部php指令。

  4. sail === composer(container) 链接容器内部composer指令。

  5. sail === mysql-cli 链接mysql/mariadb/psql容器内部指令。

  6. sail === redis-cli 链接redis容器内部指令。

  7. sail === shell(container) 链接应用容器内部shell指令。

  8. sail === phpunit(container) 执行应用容器内部phpunit指令。

...等等功能,
期待你的发现与探索。

定制容器

因为 Sail 就是 Docker,所以你可以自由的定制任何内容,使用 命令可以将 Sail 预设的 Dockerfile 发布到你的应用程序中,以便于进行定制:

运行这个命令后,Sail 预设好的 Dockerfile 和其他配置文件将被生成发布到项目根目录的 docker 目录中。 完成上述操作后,可以按需修改Dockerfile中的php扩展等。修改完成后,执行以下命令重新构建容器即可:

高级用法

  1. 使用开发容器 DevContainer

  2. 配置别名 默认情况下,Sail 命令使用 vendor/bin/sail 脚本调用,但与其重复的输入 vendor/bin/sail 来执行 Sail 命令,你可能会希望配置一个 Bash 别名方便你更容易的执行 Sail 命令

补充:通过 vim ~/.bashrc 或 vim ~/.zshrc 加入别名,可以让别名常驻。

贡献

欢迎提交PR

鸣谢

灵感与借鉴:laravel/sail

开源许可协议

MIT LICENSE


All versions of webman-sail with dependencies

PHP Build Version
Package Version
Requires webman/console Version ^1.2
symfony/process Version ^5.0|^6.0
illuminate/collections Version ^8.0|^9.0|^10.0
symfony/console Version ^5.0|^6.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package roiwk/webman-sail contains the following files

Loading the files please wait ....