承接 3f/lint 相关项目开发

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

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

3f/lint

Composer 安装命令:

composer require 3f/lint

包简介

Lint is a wrapper to `PHP -l` command.

README 文档

README

Latest Stable Version Latest Unstable Version Build Status Scrutinizer Code Quality License Total Downloads

Lint

Lint is a wrapper to php -l command.

Composer Installation

To install Lint, you first need to install Composer, a Package Manager for PHP, following those few steps:

curl -s https://getcomposer.org/installer | php

You can run this command to easily access composer from anywhere on your system:

sudo mv composer.phar /usr/local/bin/composer

Lint Installation

Once you have installed Composer, it's easy install Lint.

  1. Edit your composer.json file, adding Lint to the require section:
{
    "require": {
        "3f/lint": "dev-master"
    },
}
  1. Run the following command in your project root dir:
composer update

Usage

Lint provides two static methods only: checkSourceFile() and checkSourceCode():

Lint::checkSourceFile("foo.php");

Methods

Lint::checkSourceFile()

public static function checkSourceFile(
    $fileName
)

Makes the syntax check of the specified file. If an error occurs, generates an exception.

Parameters

  • fileName

    The file name you want check.

Exceptions

  • RuntimeException

    In case of error it raises an exception.

Lint::checkSourceCode()

public static function checkSourceCode(
    $str,
    $addTags = TRUE
)

Makes the syntax check of the given source code. If an error occurs, generates an exception.

Parameters

  • str

    The source code.

  • addTags

    Tells if you want add PHP tags to the source code, because PHP lint needs them or it will raise an exception.

Exceptions

  • RuntimeException

    In case of error it raises an exception.

Documentation

The documentation can be generated using Doxygen. A Doxyfile is provided for your convenience.

Requirements

  • PHP 5.4.0 or above.

Authors

Filippo F. Fadda - filippo.fadda@programmazione.it - http://www.linkedin.com/in/filippofadda

License

Lint is licensed under the Apache License, Version 2.0 - see the LICENSE file for details.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2012-10-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固