liaosp / flexwire
build your app quickly
Installs: 13
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/liaosp/flexwire
This package is auto-updated.
Last update: 2025-11-28 10:43:34 UTC
README
.
Installing
$ composer require liaosp/flexwire -vvv
Usage
php artisan vendor:publish --tag=flexwire-assets
php artisan vendor:publish --tag=flexwire-config
Demo
class FormController
{
public function resetCode()
{
$content = Content::make()
->title('激活码')
->banner(['https://s21.ax1x.com/2024/12/31/pAz12M4.png'])
->block()
->add(new CodeValidateForm());
return $content->render();
}
public function addTestIp()
{
$content = Content::make()
->title('添加测试IP')
->banner(['https://s21.ax1x.com/2024/12/31/pAz12M4.png'])
->block()
->add(new AddTestIp());
return $content->render();
}
}
Form Demo
<?php
namespace Liaosp\Flexwire\Http\Form;
use App\Models\Code;
use Illuminate\Support\Carbon;
use Liaosp\Flexwire\Services\Form;
use Liaosp\Flexwire\Services\ToolService;
class CodeValidateForm extends Form
{
protected $type = 'form';
public function handle()
{
$code = request()->input('code');
# todo .. your code ~~~
}
public function form()
{
$this->text('code', '激活码','');
$this->submit('重置激活码');
}
public function confirm()
{
return '重置激活码减少1天有效期';
}
}
Grid
public function index()
{
$content = Content::make()
->body(Grid::make([
GridItem::make('功能1'),
GridItem::make('测试2'),
],2));
$content->render();
return $content;
}
重写路由
Route::middleware(['h5.auth'])->post('/flexwire/get-service2', [\Liaosp\Flexwire\Http\Controllers\GetServiceController::class,'handle2']);
Contributing
You can contribute in one of three ways:
- File bug reports using the issue tracker.
- Answer questions or fix bugs on the issue tracker.
- Contribute new features or update the wiki.
The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.
License
MIT
