定制 emedia/oxygen-installer 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

emedia/oxygen-installer

最新稳定版本:v5.0.0

Composer 安装命令:

composer require emedia/oxygen-installer

包简介

Oxygen application installer.

关键字:

README 文档

README

Oxygen Installer downloads Laravel, installs Oxygen, and prepares the project so you can start from a working Oxygen application instead of wiring the stack together by hand.

Version Compatibility

Installer LineLatest PackageDefault TargetOptional --o_version Targets
5.x5.0.0Oxygen v9 / Laravel v137, 8, 9, dev
4.x4.0.xOxygen v8 / Laravel v124, 5, 6, 7, 8, dev
2.x2.2.xOxygen v7 / Laravel v105, 6, 7, dev
version/v1.x1.xOxygen v4 / Laravel v74

See CHANGELOG.md for release history.

Requirements

  • PHP ^8.3
  • Composer
  • Git
  • Node.js and NPM, unless you use --no-npm

Getting Started

Installation / Update

Install the latest Oxygen Installer globally with Composer:

composer global require emedia/oxygen-installer

The current release is 5.0.0.

Make sure Composer's global vendor bin directory is on your $PATH. Common locations are:

macOS: $HOME/.composer/vendor/bin
Windows: %USERPROFILE%\AppData\Roaming\Composer\vendor\bin
GNU / Linux Distributions: $HOME/.config/composer/vendor/bin or $HOME/.composer/vendor/bin

You can also find Composer's global installation path by running composer global about and checking the first line.

After installation, confirm the version:

oxygen -v

Create a Project

The default install path on 5.x is Laravel 13 with Oxygen 9:

oxygen new myproject

You can also provide common project settings in one command:

oxygen new myproject --name "My Project" --dev_url "localhost.test" --dbname mydatabase --dbuser john --dbpass mypassword --mailuser smtp_username --mailpass smtp_password

Change Oxygen / Laravel Version

Use --o_version when you need an older compatible Oxygen release:

# Install Laravel 13 + Oxygen 9 (default)
oxygen new myproject

# Install Laravel 12 + Oxygen 8
oxygen new myproject --o_version 8

# Install Laravel 10 + Oxygen 7
oxygen new myproject --o_version 7

# Install the dev branch
oxygen new myproject --o_version dev

Frontend Build Behavior

  • For Oxygen 8, Oxygen 9, and newer dev builds, the installer runs npm install and a single npm run dev.
  • Oxygen 7 keeps the previous double npm run dev behavior.
  • --no-npm skips Node.js and NPM checks entirely, and also skips all frontend install/build steps.

Available Options

CLI OptionWhat it Does
--o_versionTarget Oxygen version (7 to 9 or dev)
--nameName of the project
--emailAdmin user's email address (to seed the database)
--dev_urlVirtualHost's APP_URL
--forceForce installation even if the target directory already exists
--dbconnDatabase connection
--dbhostDatabase host
--dbportDatabase port
--dbnameDatabase name
--dbuserDatabase user
--dbpassDatabase password
--mailerMail driver
--mailhostMail host
--mailportMail port
--mailuserMail username
--mailpassMail password
--mailencMail encryption
--public_folderPublic folder name
--no-npmSkip Node.js / NPM checks and frontend build steps

Contributing

See CONTRIBUTING.md for developer instructions.

Copyright

Copyright (c) 2026 Elegant Media.

统计信息

  • 总下载量: 306
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2020-05-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固