承接 ngfw/laravel-stack 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

ngfw/laravel-stack

Composer 安装命令:

composer require ngfw/laravel-stack

包简介

README 文档

README

Laravel Stack Installer is a powerful command-line tool to set up Laravel with different stacks quickly. It simplifies the installation process for developers by automating the setup of popular Laravel configurations.

Features

  • Interactive menu for easy selection of stacks.
  • Install Laravel with a variety of pre-configured stacks:
    • ▲ Next.js + Breeze
    • ⚛ React + Tailwind Stack
    • ✧ Vue + Inertia.js + Tailwind Stack
    • τ TALL Stack
    • ◉ Livewire + Tailwind Stack
    • ◯ API-Only Stack
    • ⬡ GraphQL Stack

Installation

Laravel Stack Installer is distributed as a Composer package and can be installed globally.

Install via Composer

Run the following command to install the tool globally using Composer:

composer global require ngfw/laravel-stack -W

Make sure the composer path (e.g., ~/.composer/vendor/bin or ~/.config/composer/vendor/bin) is added to your system's PATH.

Or add it with command:

  • On Linux or macOS:

    export PATH=$PATH:~/.composer/vendor/bin

    Add the above line to your shell configuration file (e.g., ~/.bashrc or ~/.zshrc).

  • On Windows: Add the global composer\vendor\bin directory to your system's environment variables.

Usage

demo

Running the Installer

Once installed, you can use the tool directly from the command line. Run the following command to start the interactive menu:

laravel-stack

To skip the menu and run a specific installer directly, use the following command format:

laravel-stack --project="<YOUR_PROJECT_NAME>" --db.host="<DB_HOST>" --db.user="<DB_USER>" --db.password="<DB_PASSWORD>"

For example:

laravel-stack --project="myFirstStack" --db.host="127.0.0.1" --db.user="root" --db.password="password"

IMPORTANT!

The installer currently supports only MySQL as the database option. A new MySQL database will be created and named after your project. If you require a different database engine, you will need to update the configuration manually after installation.

Available Installers

The following installers are available in Laravel Stack Installer. Each provides a tailored setup for a specific development stack.

Installer Description
Next.js + Breeze Next.js + Laravel API + Breeze: A seamless setup for modern web apps using Next.js as the frontend and Laravel as the backend.
React + Tailwind Stack React + Tailwind CSS: A stack for building modern frontend interfaces with React and styling with Tailwind CSS.
TALL Stack TALL Stack: Combines TailwindCSS, AlpineJS, Laravel, and FilamentPHP for a clean and productive UI/UX workflow.
Livewire + Tailwind Stack Livewire + Tailwind CSS: A powerful stack for dynamic and real-time UIs with Livewire and Tailwind CSS.
API-Only Stack API-Only Stack: A lightweight Laravel setup for purely API-driven applications.
GraphQL Stack GraphQL Stack: Integrates GraphQL with Laravel for flexible API queries.

Starting the Development Environment

demo

After installing your stack, a devServer.sh script is included in your project directory. This script simplifies the process of setting up and running your development environment.

Usage Instructions

Navigate to Your Project Directory

Move into the directory where your new stack is installed. For example, if your project is named MyFirstStack, than run:

cd MyFirstStack/

Run the Dev Server Script

Execute the devServer.sh script to start the development environment

./devServer.sh

The behavior of this script depends on the stack you’ve chosen. It typically manages multiple processes, such as:

  • Running the Laravel backend server (php artisan serve).
  • Launching frontend development servers (e.g., Next.js or Inertia.js).
  • And last tailing logs for real-time updates.

Example Stack Behaviors

Laravel Default Stack Example Laravel + Next.js Stack
For most stacks, the devServer.sh script starts the Laravel development server, and the application can be accessed at: For stacks like Next.js, the development process involves multiple servers. When you run the devServer.sh script, three terminal panels may open:
http://127.0.0.1:8000 - Laravel Backend Server Runs on http://127.0.0.1:8000.
- Next.js Development Server Runs on http://127.0.0.1:3000.
The first log message will confirm this: Log message:
[INFO] Laravel Installation Successfully [INFO] Laravel Installation Successfully
[INFO] Your application is running on http://127.0.0.1:8000/ [INFO] Your Next.JS application is running on http://127.0.0.1:3000/
[INFO] Your Laravel API is running on http://127.0.0.1:8000/

Development Progress

Below is the current status of all supported installers:

  • Next.js + Breeze
  • React + Tailwind Stack
  • Vue + Inertia.js + Tailwind Stack
  • TALL Stack
  • Livewire + Tailwind Stack
  • API-Only Stack
  • GraphQL Stack

Contributing

Contributions are welcome! If you’d like to add new stacks or features, please submit a pull request or open an issue on the repository.

License

This project is licensed under the MIT License. See the LICENSE file for details.

ngfw/laravel-stack 适用场景与选型建议

ngfw/laravel-stack 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 7 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 12 月 21 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 ngfw/laravel-stack 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 ngfw/laravel-stack 我们能提供哪些服务?
定制开发 / 二次开发

基于 ngfw/laravel-stack 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-12-21