Suggestions on Ajax development environment for PHP [closed] - php

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I am a C/C++ programmer professionally, but I've created a couple of personal web sites using PHP and MySQL.
They're pretty basic, and I'd like to jazz them up using Ajax, but I've never done any Ajax. I've done all the development so far manually, i.e. no IDE or anything like that.
Does anyone have suggestions on Ajax development environments that can help me?
Shareware or freeware would be preferable as I'd find it hard to justify spending more than a minimal amount of money on this...

As T.O. says, try Aptana. There's a very good free version, and they really push the AJAX. They even have Jaxer, an "AJAX Server" that they're working on. If nothing else, the plugins are great, and, other than a few quirks, I really like working in it.

If you want an IDE, try Aptana Studio. It supports HTML, CSS, JavaScript, PHP, XML, Ruby, Ruby on Rails, and more....

Aptana is supposedly a decent IDE for Javascript development. I myself just use Eclipse and a decent javascript framework like jQuery that has an easy syntax.

Rolling your own AJAX has become somewhat outdated in the presence of Javascript libraries like Prototype and JQuery. I would recommend looking into one of those libraries (Jeff used JQuery for SO and he's been really impressed with it from what I understand).
As far as a development environment goes, I don't know that there's much. A typical text editor with syntax highlighting would do the trick for writing (like Notepad++). For debugging, take a look at the Firebug extension for Firefox (though if you use JQuery, a debugging tool may not be as useful).

First off, make sure you understand the basics of the HTTP protocol. Then learn how the javascript httpXmlRequest function works. Once you've covered those, pick an Ajax library - prototype is good.
Then look at a few examples, and follow the API.
Job done.
I seriously have no idea how they manage to write entire books on this subject.
Edit: Why vote me down? Learning the basics first, leads to a much better understanding of the way it works. And yes, I believe Jeff should learn C too ;-P

Sajax is another good toolkit with PHP support.
Mostly though I prefer to use a Javascript framework like Jquery or Prototype

Related

PHP Tool to check syntax/code validity [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I am new to PHP and was wondering whether there is a tool which checks the PHP code syntax and validity.
For example if I have:
class myClass
{
public function function1()
{
$this->myvariable++;
$this->function2();
}
private $myVariable;
}
I would like the tool to highlight that the variable myvariable and the function function2 does not exist within that class.
I have searched online and found http://www.icosaedro.it/phplint/index.html however when I tried it in my PHP project it did not work correctly. I know that php has the -l option, however that only checks for syntax not validity.
Any help would be greatly appreciated.
It sounds like you're looking for an IDE.
PHPStorm is a popular paid IDE for PHP. (~99$/~99€)
Netbeans is also popular, as well as being free.
I've also heard of phpDesigner, Komodo IDE, and Zend Studio. Also, you can find a list of PHP Editors here.
The kind of tool you're looking for, strictly speaking, is a static analysis tool such as PHP Mess Detector. An even simpler (and faster) check can be run from PHP itself using the -l switch, but will only warn against syntax errors.
More advanced checks against code smells, which are somewhat less than bugs but have been found to often evolve into those, can be run by tools such as CodeSniffer for PHP.
That said, the tools above (and many more) are either already bundled, or can be easily integrated, into various IDEs such as Eclipse for PHP. These also supply useful integrations such as code highlighting and inline error highlighting, so that you can quickly "zoom in" on the various bugs. Also, they come with a ton of useful features such as code completion, lookups, insight, templating, and refactoring. More advanced IDEs also "know" about the most popular frameworks and so can be a great help in using them.
You are searching for Integrated Development Environment or shortly IDE, which is software with a lot built in functions to help you to write, test, develop, debug etc... your software.
If we are talking about PHP programming language I prefer them in the following order:
Netbeans
PhpStorm
phpDesigner
Zend Studio

Event-Driven PHP Framework? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I'm wondering if there are any completely event-drive frameworks out there for PHP which are based around dependency injection for decoupling. I know there are some frameworks that make use of these patterns - but in the end the entire life-cycle of the application is still pre-defined and linear in style.
For example, most frameworks are built to receive, process, and return results from HTTP requests. An event drive framework would have handlers for that, but also be able to be used for new purposes like background processing, command line interaction, or other non-standard use cases.
It sounds to me like the Photon framework fits closest to your description - the key point is that you can't have event-driven code without php running in a daemon-like process. Your choice of webserver in fact dictates whether what you ask is possible or not - photon is dependent on mongrel2.
I have never used it for a project personally, but I believe that Prado covers what you are asking. It is componentised, but I cannot be sure about the dependency injection aspect.
From their site:
PRADOTM is a component-based and event-driven programming framework for developing Web applications in PHP 5. PRADO stands for
PHP Rapid Application Development Object-oriented.
I know of it because one of my university class mates designed the logo and website for the project.
Not used it, but I believe in addition to Prado, which Treffynnon has mentioned, Qcodo is a pure event-driven framework.
I was looking what is around as well and i came across p4e which is based on zend framework,and nette, hope it can help!
Off the bat there are these 2 as well:
Zend Framework 2 (still in beta)
symfony 2
Both have all the things you are looking for I believe.
Symfony2. Simple as that.
http://symfony.com/
Yii ,It is a component based and event-driven framework, Pure OOP and MVC. It is very clean and neat. Check it out.
http://www.yiiframework.com
The Qbix Platform is heavily event-driven in PHP, although it does not use dependency injection.
Reactphp is what you are looking for.

help me find a light php/html/js IDE [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
ok ok i know SO is full of this kind of question,
but there's a catch:
here's what i need:
a fast and light PHP/HTML/CSS/JS (jquery support ?) IDE
Onestly i'm a PHP devolper AND a web designer so i need something good in both fields (syntax check is a must, web preview would be awesome)
Here's the catch: No Overkill like Eclipse, NetBeans ecc... i'm working almost entirely at 5/10 days projects, i don't really have the time to put up such environments (projects, cvn...). I just need to open the (php,html,js,css) file, modify it and save it in the fastest possible way....
No text-editors (notepad++), they're fine, but i'd like to try something "more"
I'm currently using Dreamweaver cs5 and i'm fine with it, but it's a little too CPU demanding for me...
Thanks !!
Edit: i'm on Windows 7
I use Komodo Edit on both Windows and MAC and I love it.
Or try pspad
Coda on OSX but since you're talking about Notepad++ I assume you're on Windows...
Anyway, could make you want to switch ;-) http://panic.com/coda/
Try to look at PhpStorm or WebStorm.
Emacs supports
PHP and
JavaScript and pretty much everything. It pwns!
I use Sublime Text or Brackets or Atom. They are small and do not require high performance.
Sublime Text may be downloaded and evaluated for free, however a license must be purchased for continued use.
Some more details about Brackets (free and open source), from the linked page:
With focused visual tools and preprocessor support, Brackets is a modern text editor that makes it easy to design in the browser. It's crafted from the ground up for web designers and front-end developers.
Some more details about Atom (free and open source), from the linked page:
Atom is a text editor that's modern, approachable, yet hackable to the core—a tool you can customize to do anything but also use productively without ever touching a config file.

What would you recommend as a transition language on the desktop for a PHP programmer? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 3 years ago.
Improve this question
I've been using PHP for some time now, and though I certainly don't claim I am a PHP guru, I feel I know my way around the language enough to get most things done elegantly enough.
Up 'til now, I haven't really wanted to do much desktop programming. I've hacked together tiny things with AutoHotKey and (I'm sure) rather poorly written C#, but I have never gotten into these languages in the same way that I have with PHP.
Now, I'm looking to change that, so I am asking you guys what you think would be the best language for me to try for programming on the desktop. Preferably, I would like something that is
Typed similarly to PHP (Wikipedia lists it as "dynamically/weakly" typed
Interpreted
Can be compiled (or at least packed) to an executable, and easily
Thanks in advance for any help!
EDIT:
Thank you all for the helpful answers - I wish I could have accepted all of them. I decided to try learn into Python, keeping in mind the differences between web and desktop development. Thank you all for your generous help!
My recommendation would be to try python. It is dynamically/strongly typed, and has syntax and features relatively similar to php. It can't be compiled to an executable, but it can be compiled to byte-code, like java is.
I have been programming in php for several years and recently picked up python and have really enjoyed it. I have also used c++ and java quite a bit and find them to be more difficult to master, and more frustrating to use.
There's not much value is learning a "PHP for the desktop language". I'd recommend that you explore language with different principles (say Python or Ruby) and use Desktop apps as your learning vehicle. PHP is written to be embedded inside a web page and that carries over even when you use it as a regular scripting language.
You can learn the ropes a little before picking up a new language by using something like PHP GTK.
PHP's design principles are fine on server side, but in many places they don't really fit in the world of Desktop development. For example, native Windows applications follow entirely different paradigms. Being able to work with these in a PHP-like language requires an additional (performance-intensive) layer between your language and the Windows API.
Bottom line: Much of Desktop app programming is so fundamentally different from how a PHP web app works, you won't get far with PHP's paradigms anyway.
I would therefore recommend to drop the requirements, and look/ask for the optimal language for the task instead. I don't know your situation of course, but if you have the time, chance and inclination at all, it's a great way to expand the programming horizon; also from a professional and CV perspective, it doesn't hurt to have another language under your belt.

which web development tools and languages should i use? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I started programming in january of this year and have covered a lot of ground. I have learnt javascript, ruby on rails, html, css, jquery and every now and then i like to try out some clojure but i will really get into that in the middle of next yr. I really didnt like rails and prefer using netbeans with pure javaScript, html and css, i just feel like i have more control. I really like javascript, but when it comes to sever side programming i have a problem.......for my level of experience i just feel like server side js will not be a good fit yet as it is still not as mature/user friendly as php or ruby on rails.
What server side language should i invest in, should i learn php? There is so much info on source code on php. I know that there is node.js and emerging frameworks like geddy.js but i need something more user friendly....or am i just being a woos.I would really like some help on this.
Thanks in advance
PS. Update: Thanks all for advice, i have settled on python and web2py framework. I decided between django and web2py by doing a couple of simple tutorials and preferred web2py by a huge margin.
If you like ruby as programming language, but find rails to be just too much to take in it once, I'd recommend trying Sinatra. It's also a ruby-based web framework, but it's a lot simpler than rails, and offers you a lot more control over how you want to set things up. For smaller projects, it's often a much better fit than Rails.
Not sure why you don't like rails, but you might want to try the newly released "Rails for Zombies" tutorials by Envy Labs: http://railsforzombies.org/. Or if you like books instead of online stuff, check out Agile Web Development with Rails
As ben states, sinatra is nice for smallish stuff.
A few things to choose from, broken down by language and order of their complexity/learning curve:
Ruby
Sinatra
Rails
Python
web.py
Django
PHP
Code Igniter
CakePHP
Symfony
EDIT: I removed my comment about php and added in some PHP specifics. Personally I started with Symfony but it is rather complex. Code Igniter would be a good starting place if you want to learn a PHP framework.
Python language and Django web framework are another good alternative. Both elegant and easy to get started with.

Categories