Giter Club home page Giter Club logo

phpstorm-cc-helpers's Introduction

Code Completion for OSS projects in phpStorm

Build Status

These are helper files for code completion in phpStorm with some Open Source Software that I work with.

Its important that you read the comments in each file.

* CodeIgniter   CodeIgniter/
* phpBB3        phpBB3.php          Some phpBB3 CC fixes
* WordPress     WordPress/  
* OpenCart	    OpenCart/           Still in early stages, but should show example   
* WordPress     example.php         Some other fix examples
* Laravel       submodule laravel-helpers
Note: plugins work only in PhpStorm 2016.3 EAP

Props to @artspb for pointing me to this and showing me how they are created.

The plugins in this repo will be available via the phpStorm plugin system as of 2016.3 EAP

Laravel helpers https://github.com/danielboendergaard/laravel-helpers

CodeIgniter source https://github.com/EllisLab/CodeIgniter

Thought I would mention I checked NetBeans 7.1 with CI and the CI_phpStorm.php helps NetBeans with code completion as well .

Basic Instructions

Fork and Clone or Clone to somewhere on your dev machine

Get Laravel helpers

git submodule init
git submodule update

Loading in phpStorm

Load your actual project, then you have 2 options, set include path or add content root (Your choice)

Option 1 =
File > Settings > Directories > Add Content Root > Select the directory in phpStorm-CC-helpers that is relevant > mark Resource Root

Option 2 =
In the project window right click External Libraries > Configure PHP Include Paths Then add the path to the phpStorm-CC-helpers that is relevant

CodeIgniter Specific

Mark as Plain Text

  • /system/core/Controller.php
  • /system/core/Model.php
  • /system/database/DB_active_rec.php

You should now have code completion.

Using the my_models.php

Add your models to the docBlock

Example

	@property membership_model $membership_model

membership_model is the model class and $membership_model will be the property you use to instance it.

Example

	$this->membership_model->get_records();

This will give you code completion for your model methods.

OpenCart Specific

Mark as Plain Text

  • /system/engine/controller.php
  • /system/engine/model.php
  • /system/engine/loader.php

phpstorm-cc-helpers's People

Contributors

albinodrought avatar bitdeli-chef avatar fabiobeneditto avatar junaexp avatar reillo avatar topdown avatar veqryn avatar

Stargazers

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

Watchers

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

phpstorm-cc-helpers's Issues

Cannot make it work in PHPStorm 8.0.2

Hello guys,

I'm new to PHPStorm and I'm still adapting on this IDE. However, I tried all the ways in documentation to make Codeigniter completion to work in a ongoing project with Codeigniter and PHPStorm 8.0.2 and I got no success.

Has anyone already succeeded on that? Please, let me know!

Thanks!

PhpStorm 9 support (jump to model does not work)

In phpstorm 9 jumping to model (CTRL+click) from controller opens helper file included to project from this solution instead of real model file.
Autocomplete works fine.

Do anyone knows workaround or solution (fix) ?

Improve Readme for OpenCart

In addition to the CodeIgniter specific it would be good to add these to the readme too. Stops "Multiple Class" errors and failure of code completion.

OpenCart Specific

Mark as Plain Text

  • /system/engine/controller.php
  • /system/engine/model.php
  • /system/engine/loader.php

Trouble getting this working with CodeIgniter on PHPStorm 7.1

I have added my models to my_models. I have imported Them into the project root and I have included their paths in the php include, I have tried both plain text and php files.
image

Still I get no code completion:
image

Also no active record:

image

Any thought on why this won't work ?? anything else I can try?

BTW I have also Invalidated Caches and restarted.

Thanks,

About codeigniter completion

Hi
I try to your sample in phpstorm for codeigniter
But i cannot
I add my_models.php to root and add my model to this file in header but not complete any code

PHPStorm CI service support

I create Service in CI 3.0. If I call a function of Model in Service, is there any way that I can view the definition of this function?

Update Readme

Need to update Readme about changes and new/better ways to include these helpers in a project.

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.