• This repository has been archived on 24/Sep/2020
  • Stars
    star
    640
  • Rank 67,625 (Top 2 %)
  • Language
    PHP
  • License
    Other
  • Created almost 9 years ago
  • Updated about 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Smart/Static Analyzer(sis) for PHP :bowtie::neckbeard:

Logo

PHPSA - Smart Analyzer for PHP

Build Status Scrutinizer Code Quality Code Coverage Latest Stable Version License

PHPSA is a development tool aimed at bringing complex analysis for PHP applications and libraries.

P.S This software is currently in early alpha state, any contributions/stars will be awesome.

Components

  • Core - Component containing definitions and other core files
  • Compiler - Component to compile expression(s) and statement(s) from an abstract syntax tree
  • Analyzer - Component doing various checks on your files
  • ControlFlow - Component for ControlFlow (WIP)

Installation (more)

The recommended way to install phpsa is via Composer.

Run php composer.phar require ovr/phpsa or add a new requirement in your composer.json.

{
  "require": {
    "ovr/phpsa": "*"
  }
}

How to use (more)

$ ./bin/phpsa check fixtures/

Syntax error:  Syntax error, unexpected T_RETURN on line 11 in fixtures/simple/syntax/Error2.php 

    $b = $a + 1; 123123

Notice:  Constant BBBB does not exist in self scope in fixtures/simple/undefined/Const.php on 29 [undefined-const]

    return self::BBBB; 

Notice:  You are trying to cast 'string' to 'string' in fixtures/simple/code-smell/StandardFunctionCall.php on 16 [stupid.cast]

    return (string) json_encode(array(

Notice:  Missing docblock for callStaticMethodBySelf() method in fixtures/Compiling/Expression/StaticCall.php on 18 [missing-docblock]

    public static function callStaticMethodBySelf()

Requirements

PHP >= 7.0, but you can check files that use PHP >= 5.2 with this.

Documentation

See our documentation in case you need more information on some topic.

Contributing

Check our Contributing Guide to see how you can help.

Sponsors

Thanks to our sponsors and supporters:

JetBrains

LICENSE

This project is open-sourced software licensed under the MIT License.

See the LICENSE file for more information.

More Repositories

1

StaticScript

🚀 TypeScript compiler on top of TypeScript as frontend and LLVM as backend
TypeScript
591
star
2

react-native-status-bar-height

Small library that helps you to get status bar height, P.S 📱X supported ❤️
TypeScript
422
star
3

phalcon-module-skeleton

🐥 Phalcon modules skeleton is an application template for building beauty applications on Phalcon framework.
PHP
131
star
4

perfect-php-vagrant

💻 Web development Vagrant machine with PHP + Phalcon/Lynx/Zephir, Nginx, Node+Bower/Gulp/Grunt
PHP
52
star
5

ghubber

📱 Mobile client for GitHub build on React Native :atom:
JavaScript
46
star
6

phalcon-elasticsearch

Easy way to use Elastic in Phalcon
PHP
30
star
7

phalcony

🐣 Library for expansion the base functional of Phalcon framework
PHP
19
star
8

async-std

TypeScript
18
star
9

tinkoff-invest-rust

gRPC Клиент для Тинькофф Инвестиций (протокол v2)
Rust
8
star
10

awesome-zephir

7
star
11

shingles

Алгоритм шинглов
PHP
6
star
12

phalcon-rest-edition

Phalcon Rest Api Edition Skeleton
PHP
4
star
13

CypherCore

5.1.0a MOP World of Warcraft emulator source
C#
4
star
14

go-calculate-thrift

A simple RPC Client/Server example with Apache Thrift Protocol generator
Go
3
star
15

swagger-assert-helper

🌈 Test your API by Swagger like a god on the 🚀
PHP
3
star
16

php-web-benchmarks

PHP
3
star
17

php2c

PHP to C/C++ translator tool
PHP
3
star
18

v8-vm.js

Implemenetation of Ignition interpereter from V8 on JS
JavaScript
3
star
19

learn-cpp

Simple examples to work C++ and Network stuff
C++
2
star
20

zephir-presentation

CodeFest 2015
CSS
2
star
21

tinkoff-invest-grpc-node

JavaScript
2
star
22

vk-import-users

128 Threads, 1kkk per minute from rest api service to db
PHP
2
star
23

machine-post

Эмулятор Машины Поста Онлайн
JavaScript
2
star
24

new-relic-polyfill-php

PHP
2
star
25

gitlab-super-ci

How to do super CI on gitlab (examples)
2
star
26

getting-started-phalcon-zephir

1
star
27

zephir-parser

Zephir parser on top of PHP-Parser by @nikic
PHP
1
star
28

simple-db-learn

C++
1
star
29

zephir-php-extensions

zephir-php-extensions
C
1
star
30

java-homework

Задачи и решение к ним
Java
1
star
31

php-zephir-hhvm-benchmark

Benchmark your PHP/Zephir/HHVM
C
1
star
32

imagemagick-cpp

CMake
1
star
33

array-partitioning-problem

PHP
1
star
34

go-url-checker

Go
1
star
35

xboston-birthday

JavaScript
1
star
36

ovr.github.io

My personal Page
HTML
1
star
37

Zend

Zend Framework 1.12.1 Libraries
PHP
1
star
38

cpp-homework

Домашнии работы по основам программирования и Современным технологиям программирования
C++
1
star
39

ffmpeg-demo

C++
1
star
40

phpinspectionsea-mirror

Mirror for https://bitbucket.org/kalessil/phpinspectionsea
Java
1
star