定制 happytodev/larafil 二次开发

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

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

happytodev/larafil

Composer 安装命令:

composer create-project happytodev/larafil

包简介

A Laravel Zero based CLI to install Laravel and Filament easily

README 文档

README

Total Downloads Latest Stable Version License

Larafil was created by HappyToDev and was inspired by a Povilas Korop's tweet.

In one line, you can install Laravel and FilamenPHP :

Exemple :

larafil install myNewAwesomeProject --create-user --filament-url=batcave --mysql --serve

With this single line, Larafil

  • will install Laravel (last version) in a directory called myNewAwesomeProject
  • change default SQLite database by a MySQL database in your .env file, create the MySQL database, launch migrations, remove database.sqlite database
  • will install FilamentPHP
  • ask you to create the first Filament user
  • ask you if you want to install some Filament Plugins (For now, only these plugins are supported as a proof of concept : 'None (default)', 'Breezy', 'Curator', 'Shield', 'Spatie Role Permissions')
  • change the FilamentPHP admin URL to batcave
  • start the integrated server

Every option is optional.

If you don't provide the name of the application, Larafil will ask you for it, so you can perfectly use this command instead of that above :

larafil install --create-user --filament-url=batcave --mysql --serve

when Larafil will ask you for the name of the project, it wiil be up to you to give you the name.

How to use Larafil

Get it on Packagist

composer global require happytodev/larafil

and just use it :

larafil install

It will ask you the name of your future application.

Customize FilamentPHP admin url

You can change the default '/admin' url to the url you want. You have just to pass the option with your new value :

larafil install --filament-url=batcave

Once the installation finished, you can access to your dashboard with <url.of.your.project>/batcave>

Create a Filament user

You can ask for a Filament user creation at the end of the installation :

larafil install --create-user

Serve your application

You can also ask to launch Laravel integrated server after the installation :

larafil install --serve

Of course, you can combine the two options together :

larafil install --create-user --serve

Use MySQL database instead SQLite default one

If you want to use MySQL database instead the sqlite default one, you can use the --mysql option :

larafil install --create-user --mysql --serve

Use Laravel 10 instead of Laravel 11

If you want to use Laravel 10 instead Laravel 11, you can pass the l10 option during installation :

larafil install --create-user --laravel-version=previous --serve

Nota : you can't use l10 and mysql option together. That's because Laravel 10 use mysql by default. For Laravel 11, it's SQLite by default. If you try to use both together, you will have an error and the install stops.

The purpose of Larafil was to play with Laravel Zero from Nuno Maduro.

How to build Larafil

  1. git clone
git clone https://github.com/happytodev/larafil.git larafil
  1. Composer install
composer install
  1. Build the app
php larafil app:build
  1. It's ready
./builds/larafil -V

Support the development

I don't know if there is another thing to develop for Larafil but tell me. It will be my pleasure to develop some good ideas for this little project.

Do you like this project? Support it by donating

Interested by Laravel 11 ?

Get my free ebook about news in Laravel 11

License

Larafil is an open-source software licensed under the MIT license.

happytodev/larafil 适用场景与选型建议

happytodev/larafil 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 16 次下载、GitHub Stars 达 4, 最近一次更新时间为 2024 年 05 月 01 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「framework」 「cli」 「console」 「laravel」 「Laravel Zero」 「filamentphp」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

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

围绕 happytodev/larafil 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-05-01