1 Unstar Star 0 Fork 4

caohui / hyperf-apiPHP

forked from liangguifeng / hyperf-api 
Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
hyperf的api实例,做了用户的登录认证,采用的是jwt做接口的认证,引入了blade模板引擎,供大家参考,后续会不断更新优化!!! spread retract

https://gitee.com/liangguifeng/hyperf-api

Clone or download
.php_cs 2.13 KB
Copy Edit Web IDE Raw Blame History
liangguifeng authored 2019-10-17 11:28 . update
<?php
$header = <<<'EOF'
This file is form http://findcat.cn
@link http://findcat.cn
@email 1476982312@qq.com
EOF;
return PhpCsFixer\Config::create()
->setUsingCache(false)
->setRiskyAllowed(true)
->setRules([
'@PSR2' => true,
'@Symfony' => true,
'@DoctrineAnnotation' => true,
'@PhpCsFixer' => true,
'header_comment' => [
'commentType' => 'PHPDoc',
'header' => $header,
'separate' => 'none',
'location' => 'after_declare_strict',
],
'yoda_style' => [
'equal' => false,
'identical' => false,
],
'array_syntax' => ['syntax' => 'short'],
'binary_operator_spaces' => [
'default' => 'align_single_space',
],
'blank_line_before_statement' => [
'statements' => [
'switch',
'if',
'declare',
'try',
'return',
],
],
'ordered_class_elements' => false,
'concat_space' => ['spacing' => 'one'],
'declare_equal_normalize' => ['space' => 'single'],
'multiline_whitespace_before_semicolons' => true,
'linebreak_after_opening_tag' => true,
'no_short_echo_tag' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'ordered_imports' => ['sortAlgorithm' => 'length'],
'phpdoc_add_missing_param_annotation' => true,
'phpdoc_order' => true,
'increment_style' => false,
'method_chaining_indentation' => false,
'array_indentation' => true,
])
->setFinder(
PhpCsFixer\Finder::create()
->exclude('public')
->exclude('runtime')
->exclude('vendor')
->in(__DIR__)
)
->setUsingCache(false);

Comment ( 0 )

Sign in for post a comment

PHP
1
https://gitee.com/caohui/hyperf-api.git
git@gitee.com:caohui/hyperf-api.git
caohui
hyperf-api
hyperf-api
master

Search

132457 8cb2edc1 1899542 131848 70c8d3a4 1899542