我已经担任 PHP 开发人员很多年了,我突然意识到也许我可以使用更好的开发工具。
例如,我的典型开发设置是
- Notepad++
- Dev WAMP Server(本地计算机)通常)
- CodeIgniter 框架 (最近我爱上了它,因为它大大加快了我的部署速度。 )
- phpMyAdmin(当然是 MySQL 的)。
如果您是 PHP 开发人员,您的典型设置是什么? Eclipse(有时对我来说太大了)? ETC;
我很好奇我是否遗漏了一些可能会节省我大量时间的东西,比如某种动态 PHP 代码验证器(在我按 F5 然后首次显示错误是什么之前)。我目前通过查看 Notepad++ 中的颜色突出显示来实现某种程度的“验证”。
I've been a PHP Dev for many years now, and it just dawned on me that maybe I could be using better development tools.
For example, my typical setup for development is
- Notepad++
- Dev WAMP Server (local machine usually)
- CodeIgniter framework (lately I've fallen in love with it, as it speeds up deployment for me, big time.)
- phpMyAdmin (for MySQL of course).
If you are a PHP dev, whats your typical setup? Eclipse (too bulky for me at times)? etc;
I'm curious if I am missing something that might save me a ton of time, like some kind of on the fly PHP code validator (before I hit F5 and then debut what the error is). I currently achieve somewhat of a 'validation' by seeing the color highlights in Notepad++.
发布评论
评论(6)
这对我有用:
服务器内容(模拟我的 RHE 部署服务器):
代码编写:
php.exe -l
) 在代码文件上模板编辑:
调试代码和模板:
数据库内容:
其他有用的东西:
几乎所有这些东西都是开源的并且实际上很有用。
This is what works for me:
Server stuff (emulates my RHE deployment server):
Code writing:
php.exe -l
) on the code fileTemplate editing:
Debugging code and templates:
Database stuff:
Other useful stuff:
Almost all this stuff is open source and actually useful.
尽管我讨厌 Eclipse,但我仍然使用它,因为它能够关联项目并通过 F3 提供“跳转”功能。我真的很喜欢一个替代方案,但 Netbeans 似乎无法让他们的智能感知与内置 PHP 函数一起工作(“未找到 PHPDoc”),而且我还没有找到任何其他我喜欢的 IDE。
我的工具集包括:
我强烈推荐 MySQL Administrator...它是一个出色的工具。
我还要提到的一件事是我使用 Apache 设置 Web 应用程序的方法。我通常编辑主机文件并添加如下条目:
然后设置 apache 配置,以便在我正在处理的每个应用程序的单独端口上有一个
。使用这种方法,我永远不会遇到任何 cookie 设置问题,并且我可以通过打开单独的端口来从路由器外部访问每个应用程序。这非常适合向客户展示最新进展,但可以完全控制我正在从事的所有项目。一个简单的配置文件控制应用程序的主 URL,因此当我准备将代码转移到生产环境时,只需快速更改即可。As much as I hate Eclipse, I still use it because of it's ability to associate projects and provide the "jump into" functionality with F3. I'd really love an alternative, but Netbeans can't seem to get their intellisense working with the built-in PHP functions ("PHPDoc not found"), and I haven't found any other IDE that I like.
My toolset consists of:
I highly recommend MySQL Administrator... it's an excellent tool.
One thing I'll mention as well is my method of setting up web applications with Apache. I generally edit my hosts file and add an entry like this:
Then set up the apache config to have a
<VirtualHost:80xx>
on a separate port for each app I'm working on. With this method I never have any cookie-setting problems, and I can make each application accessible from outside my router by opening individual ports. This is great for showing clients the latest developments, but having full control over all the projects I'm working on. A simple config file controls the application's main URL, so when I'm ready to move code to production, a quick change is all it takes.Zend Studio 是我最喜欢的,它是基于 eclipse 构建的
Zend Studio is my favorite, it's built off of eclipse
由于您使用的是 Windows,因此我强烈推荐 HeidiSQL 而不是 PHPMyAdmin 来使用 MySQL。 PHPMyAdmin 确实是为使用远程服务器而设计的 - 有更好的工具可以使用本地服务器。
我知道您已经放弃了 Eclipse,但它使调试代码变得非常容易。用 F5 刷新页面并不是真正的调试顺便说一句 - 你不能设置断点,或监视变量等(我知道有一种方法可以打印出所有当前变量等,但这非常麻烦)
Since you're on windows, I can highly recommend HeidiSQL over PHPMyAdmin for working with MySQL. PHPMyAdmin was really designed for working with remote servers - there are much better tools for working with local ones.
I know you've dismissed Eclipse, but it makes it very easy to debug code. Refreshing a page with F5 isn't really debugging btw - you can't set breakpoints, or monitor variables etc. (I know there's a method to print out all current variables etc., but that's very cumbersome)
vim+mysql 命令行+xampp+偶尔 mysqladmin
vim+mysql command line+xampp+ocassionally mysqladmin
我的 Linux 设置包括:apache、mod_rewrite、mysql 和 php,所有日志记录到一个文件 /var/log/dev-console.log
然后我使用像 multitail 或 acoc 这样的图形尾部来跟踪它,为 sql 添加颜色并过滤掉一些mod_rewrite 文本的。
在 bluefish-unstable 中编辑
My linux setup consists of: apache, mod_rewrite, mysql and php all logging to one file /var/log/dev-console.log
then i tail that with a graphical tailer like multitail or acoc to add colour to the sql and filter out some of the mod_rewrite text.
editing in bluefish-unstable