hoalzein/p4n-html 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

hoalzein/p4n-html

Composer 安装命令:

composer require hoalzein/p4n-html

包简介

A laravel wrapper for Prof4Net html elements.

README 文档

README

Maintenance

A laravel wrapper for Prof4Net html elements.

1. Installation for Laravel 6+

Run this at the command line:

composer require hoalzein/p4n-html

This will update composer.json and install the package into the vendor/ directory.

2. Usage

To use the html elements simply follow the provided examples:

<?php

// P4NHTML class
$p4nhtml = new hoalzein\Prof4Net\Html\P4NHtml;

// Button
$button = $p4nhtml->Button('Login', 'login.php');
echo $button->html();

// Icon Button
$icon_button = $p4nhtml->IconButton('', 'logout.php', 'power_settings_new');
echo $icon_button->html();

// Card
$cells[0][0] = $p4nhtml->Text('Id');
$cells[0][1] = $p4nhtml->Text('Name');
$card = $p4nhtml->Card('Users', $p4nhtml->Table($cells);
echo $card->html();

Using the P4NHTML facade, which is auto-discovered:

<?php

// Breadcrumbs
$home = P4NHTML::Link('Home', 'index.php');
echo P4NHTML::Breadcrumbs([$home, P4NHTML::Link('Users', 'users.php'), P4NHTML::Text('User')])->html();

3. Generating a configuration file

Confirm that this service provider entry hoalzein\Prof4Net\Html\P4NHtmlServiceProvider::class exists in config/app.php.

An optional configuration file can be published to customize package settings.

To publish the configuration file, simply run this command:

php artisan vendor:publish --provider hoalzein\Prof4Net\Html\P4NHtmlServiceProvider --tag p4n-config

This will generate the config file at config/p4n-html.php. The current possible settings are:

  • 'paths' => ['source' => base_path('vendor')]

4. Publishing assets to public directory

Confirm that this service provider entry hoalzein\Prof4Net\Html\P4NHtmlServiceProvider::class exists in config/app.php.

To publish package assets to your public directory, simply run this command:

php artisan vendor:publish --provider hoalzein\Prof4Net\Html\P4NHtmlServiceProvider --tag p4n-assets

This will copy all the assets to public/prof4net.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-04-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固