承接 toggenation/php-info 相关项目开发

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

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

toggenation/php-info

最新稳定版本:v0.1.0-alpha

Composer 安装命令:

composer require toggenation/php-info

包简介

Embeds phpinfo() output in CakePHP views

README 文档

README

Embeds the output of phpinfo() into a cake view using a custom Helper.

Usage

After making sure the PhpInfo Plugin is loaded

// in a view template
<?php

/**
 * @var App\View\AppView $this
 */

$this->loadHelper('PhpInfo.Info');
$this->Html->css('PhpInfo.styles', ['block' => 'css']);
?>

<h1>PHP Info Plugin - Demo</h1>

<?= $this->Info->display(); ?>

As an element

Use the element to pull in all of the above in one command

// pulls in src/templates/element/php-info.php
<?= $this->element('PhpInfo.php-info');

VSCode Type Hinting

Requires VSCode to have the bmewburn.vscode-intelephense-client extension from https://intelephense.com/

// in src/View/AppView.php
/**
 * Application View
 *
 * Your application's default view class
 * @property \PhpInfo\View\Helper\InfoHelper $Info
 * @link https://book.cakephp.org/4/en/views.html#the-app-view
 */
class AppView extends View
{

In template:

// add the @var line
<?php

/**
 * @var App\View\AppView $this
 */

Installation

This package is published on https://packagist.org/

You can install this plugin into your CakePHP application using composer.

The recommended way to install composer packages is:

composer require toggenation/php-info:dev-master

If you fork it and want to use your forked repo

You need to add to add the following repositories property to your composer.json and run composer update.

Or just add the repositories section and run composer require your-git-hub-user-name/php-info:dev-master

  "license": "MIT",
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/your-git-hub-user-name/php-info"
        }
    ],
    "require": {
         "toggenation/php-info": "dev-master"
    }

Tests

None yet. To be added

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-08-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固