定制 offline/octostan 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

offline/octostan

最新稳定版本:v0.0.2

Composer 安装命令:

composer require offline/octostan

包简介

PHPStan for October CMS

README 文档

README

PHPStan for October CMS

State of this library

This is currently just a proof of concept. Getting PHPStan to fully integrate with October CMS will require a lot of work and a lot of custom code. octostan is currently (July 2022) the most optimized PHPStan configuration for October CMS but has a long way to go to become actually usuable.

Contributions are welcome!

Work in progress

  • Detection of relations via October's model properties
  • Checks for existing relations in ->with()
  • Auto-detects model properties from migration files
  • Returns October Query Builder for all Eloquent query methods

Installation

Install this package via composer:

composer require offline/octostan --dev

Create a phpstan.neon file in your project. You can find an example below.

To run PHPStan, use this command:

./vendor/bin/phpstan analyze 

Example phpstan.neon

includes:
    - ./vendor/offline/octostan/extension.neon

parameters:
    level: 5
    checkMissingIterableValueType: false
    excludePaths:
        - plugins/**/tests
        - plugins/**/views
        - plugins/**/partials
        - plugins/**/controllers/**/*.php
        - plugins/**/formwidgets/**/partials/*.php
        
    paths:
        - plugins/your-vendor-name # Change this!

统计信息

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

GitHub 信息

  • Stars: 7
  • Watchers: 4
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-07-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固