Build environments for PHP extensions? - php

Looking for development frameworks for creating custom PHP Extensions. PHP4Delphi looks promising. And there's the usual Visual Studio route. Are there any others?

I use simple text editor (EditPlus) and Windows SDK for developing i.e. edit the extension and nmake.

Related

Eclipse Orion PHP plugin

So for a project I need to check if I'm able to get code completion working for Eclipse Orion (on the IBM DevOps Services WebIDE) when coding in PHP. There's a default plugin available but it only provides syntax highlighting. Code completion is the deciding factor this time.
Just googling around I've found some plugins here and there in various git repos but they seem to be for an outdated version of Orion, hence not usable here.
So, just a quick throw out if someone is using IBM DevOps Services WebIDE (or some Eclipse Orion implementation) with a PHP plugin with code-completion? Preferably a link to installation steps since I need to educate a programming class on how to set everything up from a clean slate.
Orion's Go language plug-in provides a straight-forward example of contributing content assist via a plugin, see http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/tree/bundles/org.eclipse.orion.client.ui/web/plugins/languages/go?id=R7_0 . To make something similar for PHP you would create a plug-in with the same shape that defines at least the "orion.edit.contentAssist" service, and then install it in your Orion/WebIDE on its Settings-Plugins page (point it at your plugin's .html file).

Using PHP, how can I determine which CMS or framework is used?

Using PHP, can I find out which CMS or framework is used on a particular website. Eg Wordpress, Magento or Codigniter, Laravel.
I've tried this approach: http://dailyblogging.org/internet/detect-cms-and-scripts-of-websites/
This is what I actually want, but in code form, not as an online service: http://onlinewebtool.com/cmsdetector.php This should be a PHP script that does not run as an online service.
What will it take to do this, or at least give me a hint?
Update 2018
Github repo moved:
https://github.com/AliasIO/Wappalyzer/blob/master/src/apps.json
There is a Chrome extension called Wappalyzer.
You can see some regexp which are included in the wappalyzer project for detecting servers, cms and frameworks.
Maybe you can include this and write a php script that uses this:
https://github.com/ElbertF/Wappalyzer/blob/master/share/apps.json
For Drupal, view source
And if you find
/sites/all
/sites/
For including image/javascript/css, its Drupal based site.
Same way, if you find wp_content, its wordpress.
For MVC ftameworks, its difficult to determine as url routing is same for all.

Dreamviewer & Zend Framework project: Wrong path mapping

I tried all the day to set up a Zend Framework project in Dreamweaver CS5.5. Now, after a few hours spending on google and the CS5.5 doc, i am still not able to debug a Zend Framework project in Dreamweaver:
Let's say, i have a module called "admin" in /application/modules/admin. If i try the Live View feature, Live Code, or the dynamic files discover, it fails at all.
If I try to debug the IndexController of the AdminModule, Dreamweaver always tries to render the page http://foo.bar/application/modules/admin/controllers/IndexController.php, insteadof http://foo.bar/admin[/index/index]
Is there any way to get those features working with Dreamweaver CS5.5?
Also, the include path does not work. The /public/index.php includes something like require_once 'Zend/Application.php';. Where does Dreamweaver search? He tells me that he can not find the file http://foo.bar/Zend/Application.php. Omg, srsly?
I hope there are some Dreamweaver PHP developers out there which can help me.
Btw, I am using Zend Studio at the moment and wanted to get a "quick" look into the new CS5.5 features :/
Update 16.05.2012
Little update from me. I'm currently Using PHPStorm from JetBrains. It is the best IDE I ever had. (Ecpilse/Aptana/Zend Studio/PHPDesigner). Autocomplete for nearly everything, huge plugin repository and much nice features like LESS Support, NodeJS Support, PHPUnit integration or an integrated Git Client. Give it a try. It's free for open source projects.
Dreamweaver can technically work with anything, but it's really designed to work with procedural php.
I would recommend the eclipse software with the pdt plugin or net beans. WAY better for supporting a zend framework project imo.
I'm not bagging on dreamweaver, it's a nice tool (especially for html/css), but for OO PHP programming, it's really not designed for it.

GUI for PHP in NetBeans?

Hi there I would kindly like to ask if NetBeans has any sort of GUI builder like the ones they offered for Java programming? Sorry for the noob Questions. If so, how do I install or use them? Thanks.
The only GUI Builder I know for PHP is Delphi for PHP, or it's new name RadPHP
for the new version there's a twenty video show some of it's features, you can look at them here
No it does not have this functionality as PHP does not have any GUI components built in. PHP is usually combined with HTML and CSS to render a view. Netbeans does not have a builder for HTML and CSS either so the answer is no.
There are some primitive examples of IDE's that includes GUI components. But Netbeans does not have a GUI editor or builder for PHP. Soon enough IDE developers will include some standart components since there seems to be a rising demand for visual web development. To counter balance Visual Studio, the "php"ians will retaliate somehow.
Now Netbeans version 7.3 beta support inbuilt gui builder for html5....
May be this will help us.

How to use Visual Studio for WordPress development?

Does anyone use Visual Studio to do WordPress development? If so, how do you do it?
Programming for Wordpress is mainly coding css, php, html and js files. If you're asking about using Visual Studio for this scenario, I'm assuming you want a plugin that provides code hints for WordPress development API. Since I don't know anyone, I'm going to give you some other options.
Dreamweaver and CodeLobster come to mind as commercial applications. If you want something in the open source world, I recommend you a normal multi language IDE that supports PHP: the most important thing here is to use one that at least supports some kind of snippet functionality.
That goes from Netbeans to Aptana (which is based on Eclipse) to notepad++ with snippets functionality. The last one is an interesting solution since it's really lightweight but you will need to create your own snippets for Wordpress API functions and hooks.
I had Aptana installed in my machine in the past, but now I'm using gVim with snipmate plugin and some snippets of my own that I create when I realize I'm doing repetitive tasks.
No built-in support for VS, and I guess there won't be, but there are some options like the answer on this thread for Expressions. The other thing I've been looking at recently is WebMatrix - it looks promising in that it supports WordPress.
Did you check out VS.php ?
I've looked in vain for a decent plug-in for VS that would properly handle PHP, and have never been able to find one.
I always end up back with Netbeans.
Textmate :)
Old question, I know. But if I came looking, someone else probably will as well. :)
Couple of videos here about the plug-in
PHP Tools for Visual Studio
A wordpress plugin developer saying how he uses visual studio code with plugins to run his wordpress:
https://deliciousbrains.com/vs-code-wordpress/
He seems like he knows what he's talking about.

Categories