定制 hichemtab-tech/laravelfs 二次开发

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

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

hichemtab-tech/laravelfs

最新稳定版本:1.4.0

Composer 安装命令:

composer require hichemtab-tech/laravelfs

包简介

Laravel application installer with full starter-kits including breeze and jetstream.

README 文档

README

LaravelFS was born from the idea of "Laravel Full Starter Kits" (or Full Stack) LOL – a way to bring back the legacy starter kits like Breeze and Jetstream that were removed from the official Laravel Installer, while still supporting the new Laravel 12 starter kits and community starter kits via --using.

Disclaimer: This installer is not officially supported by the Laravel team. It's a community-driven alternative that extends the Laravel Installer by supporting abandoned starter kits like Breeze and Jetstream, as well as community starter kits via --using.
We strive to keep it up-to-date with Laravel's official installer while offering extended flexibility.

Attribution: LaravelFS is based on the open-source laravel/installer project, licensed under MIT.

Official Documentation

LaravelFS functions similarly to the Laravel Installer but with extra capabilities.

Features:

  • Install Laravel projects just like the official installer.
  • Support for Breeze and Jetstream, even if they are abandoned.
  • Install community starter kits via --using (Packagist or git URL).
  • Save and reuse project setups with Templates.
  • Easily remove saved templates when no longer needed.
  • Ensure that provided starter kits are Composer packages of type project.
  • CLI command to fetch additional details about a starter kit package.

For Laravel's official installation guide, refer to the Laravel documentation.

Installation

To install LaravelFS globally, run:

composer global require hichemtab-tech/laravelfs

Make sure ~/.composer/vendor/bin (Mac/Linux) or %USERPROFILE%/AppData/Roaming/Composer/vendor/bin (Windows) is in your system's PATH to use the laravelfs command globally.

Usage

LaravelFS works similarly to the Laravel Installer. You can create a new project using:

laravelfs new my-project

Installing with Breeze or Jetstream

To create a Laravel project with Breeze or Jetstream, use:

laravelfs new my-project --breeze
laravelfs new my-project --jet

Even if these starter kits are abandoned, LaravelFS ensures they remain available for installation.

Templates

If you want to reuse the same options for new projects, you can save a template.

Creating a Template

To create a reusable template, use:

laravelfs template:new my-template

This will prompt you the same way as laravelfs new, but instead of creating a project, it saves your setup as a template.

Templates include:

  • Selected starter kits (Breeze, Jetstream, Vue, React, Livewire)
  • Starter-kit selection options
  • Extra flags like --typescript, --ssr, --api, etc.

Viewing Saved Templates

List all saved templates:

laravelfs templates

Or view a specific template:

laravelfs template:show my-template

Using a Template

Once saved, you can use your template anytime:

laravelfs use my-template my-project

This runs the exact same command as if you typed everything manually!

Removing Templates

Need to clean up your templates? You can easily remove them.

Remove a Specific Template

To delete a single template:

laravelfs template:remove my-template

Remove All Templates

To remove all saved templates at once:

laravelfs template:remove --all

This action is irreversible. Make sure you want to delete all templates before running this command.

Installing Community Starter Kits

LaravelFS allows you to install community Laravel starter kits by providing a package name or git URL:

laravelfs new my-project --using=hichemtab-tech/forked-from-react-starter-kit

What qualifies as a Laravel starter kit?
A starter kit should provide a full Laravel project setup. Packagist packages should be Composer packages of type project and published on Packagist (Submit your package here).

Ubuntu Users: Fixing LaravelFS Command Not Found Issue

If you installed LaravelFS but can’t run the laravelfs command, it might be because Composer's global bin folder is not in your system's PATH.

Solution: Add Composer Bin to PATH

  1. Open your terminal and edit the ~/.bashrc file:

    nano ~/.bashrc

    (If needed, use sudo nano ~/.bashrc)

  2. Add this line at the bottom of the file:

    export PATH="$PATH:$HOME/.config/composer/vendor/bin"
  3. Save the file (CTRL + X, then Y, then Enter).

  4. Apply the changes:

    source ~/.bashrc

Now, try running laravelfs again; it should work.

Contributing

Thank you for considering contributing to LaravelFS! We welcome contributions to improve the installer and keep it updated. Please submit issues and pull requests to the GitHub repository.

Code of Conduct

To ensure LaravelFS remains a welcoming project, please review and abide by our Code of Conduct.

Security Vulnerabilities

If you discover a security vulnerability, please open an issue or contact the maintainers.

License

LaravelFS is open-source software licensed under the MIT license.

Happy coding with LaravelFS

GitAds Sponsored

Sponsored by GitAds

统计信息

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

GitHub 信息

  • Stars: 21
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-03-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固