Code Monkey home page Code Monkey logo

anaconda_php's Introduction

AnacondaPHP

Anaconda.PHP adds PHP linting, PHP code standards checking and complexity/messing detector and copy & paste code blocks detector for your Sublime Text 3 that uses anaconda's engine so it does not freezes your Sublime Text 3 ever.

Supported Platforms

AnacondaPHP has been tested in OS X and GNU/Linux with excelent results although the plugin is not in a mature state yet and more development and tests is required. The current status in the different platforms is:

  • GNU/Linux: stable
  • OS X: stable
  • Windows: stable

Dependencies

  1. Anaconda plugin for Sublime Text 3
  2. PHP Interpreter

Installation

If Anaconda is not already installed you should install it using the Command Palette, if it is already installed, just skip to the next section

Install Anaconda plugin

  1. Show the Command Palette (cmd+shift+p on OS X or ctrl+shift+p on Linux/Windows)
  2. Type install, then select Package Control: Install package from the list of options
  3. Type anaconda and press enter

Install PHP

If you have PHP already installed in your system, just go forward to the next section.

There is too many ways to install php in different operating systems, is already installed in OS X and in the majority of the mainstream GNU/Linux distributions, please, refer to the PHP Documentation site to get details about how to install PHP in your operating system.

Install AnacondaPHP plugin

  1. Show the Command Palette (cmd+shift+p on OS X or ctrl+shift+p on Linux/Windows)
  2. Type install, then select Package Control: Install package from the list of options
  3. Type anaconda_php and press enter

And we are done

Wait, all the others plugins to lint php code require to install PEAR and a couple of command line applications in manual way, does not anaconda_php require them?

Yes, it does, but everything is already built inside the plugin so you don't need to bother about install anything yourself. You are welcome :)

Does AnacondaPHP autocomplete PHP code?

No it doesn't. Unfortunately there is no PHP autocompletion libraries (as the awesome Jedi that Anaconda uses for Python autocompletion), the only thing that I know that can be used to autocomplete PHP is Exuberant CTags, there is already a plugin to use CTags in Sublime Text, you can found it here

How I configure the plugin?

Please, refer to the Configuration file it's all well documented.

anaconda_php's People

Contributors

damnwidget avatar fozzold avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

anaconda_php's Issues

ImportError: No module named 'anaconda_php.plugin_version'

I am getting an import error on the load of this package:

reloading plugin Anaconda.anaconda
reloading plugin Anaconda.version
reloading plugin anaconda_php.anaconda_php
Traceback (most recent call last):
  File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 73, in reload_plugin
    m = importlib.import_module(modulename)
  File "./importlib/__init__.py", line 90, in import_module
  File "<frozen importlib._bootstrap>", line 1584, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1532, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 584, in _check_name_wrapper
  File "<frozen importlib._bootstrap>", line 1022, in load_module
  File "<frozen importlib._bootstrap>", line 1003, in load_module
  File "<frozen importlib._bootstrap>", line 560, in module_for_loader_wrapper
  File "<frozen importlib._bootstrap>", line 868, in _load_module
  File "<frozen importlib._bootstrap>", line 313, in _call_with_frames_removed
  File "C:\Users\MyUser\AppData\Roaming\Sublime Text 3\Packages\anaconda_php\anaconda_php.py", line 8, in <module>
    from .plugin_version import anaconda_required_version
ImportError: No module named 'anaconda_php.plugin_version'

I am running this on windows 7 x64 with Sublime Text 3. I installed both anaconda and anaconda_php from package control.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.