如何在Mac上优雅的开发PHP项目?
请列举一些你认为最舒服的,和PHP开发有关的软件、使用习惯等。
ps:知乎上看的答案多了,我还真觉得自己学富五车,可到了让自己去回答问题时,脑子里除了负能量的吐槽外,啥也没有。呵呵哒。
回复内容:
写代码的时候把小拇指微微翘起来?----------------------------------------
顺便提一下,过了一年了。
并不觉得人人都说好的语言能够优雅的起来。呵呵哒。
都用mac了,还要IDE,白瞎了那些cli。不如windows。
优雅你不如python,ruby,perl。
我的习惯就是能不开ide就不开ide。 人与动物最大的区别就是,人会使用工具。
下面是如何优雅的使用Mac开发之工具篇:
1. IDE
PhpStorm,收费的但绝对物有所值,世界上有家公司叫JetBrains,他们开发的IDE都炒鸡好使,谁用谁知道 JetBrains IDEs to create a better Web: IntelliJ IDEA, ReSharper, RubyMine, WebStorm, PhpStorm, PyCharm

2. 数据库Client
Sequel Pro ,可以轻松的进行MySQL的各种操作,关键是人家还是免费的,我最喜欢的功能就是,可以通过一层SSH隧道进行MySQL的连接。

3. 版本控制
Git,现在大家都用Git了,还在用svn的请不要关注我, SourceTree Free Mercurial and Git Client for Windows and Mac应该是目前最好用的Git图形化界面了。

4. Terminal & TotalTerminal
程序猿用Mac的一个很关键原因就是MacOS是一个UNIX系统,可以很方便的模拟Linux服务器环境。配合TotalTerminal is a system-wide terminal accessible via a hot-key 的快捷键呼出功能,简直是如虎添翼!

5. 文件传输
https://cyberduck.io/ 几乎支持所有的文件传输协议,非常方便

简直是神器,上图

首先不管是远程开发还是本地开发,你都可以先设置一个“站点”可以配置url/ssh/ftp/git/db所有你需要的一切


这里可以直接连接ssh,在服务器端各种操作,完全不需要用别的软件或者是Mac的控制台

要是不会写某个函数之类的,各种书随便查

同样也可以直接连接数据库,交互界面也十分友好
======================
Coda2不是IDE,但是你要是开发网站,只用它就够了!
http://www.panic.com/coda/
======================
看着题主被各种嘲讽真是于心不忍
知乎风气越来越坏了
得治 雇个秘书,然后口述。 优雅都是指代码优雅。
写的代码优雅,notepad码也一帮人跪舔。
写出一坨翔来,你就是把ide玩出花来也白搭。
多玩些实在的,少弄些虚的,代码能是靠ide优雅的么。
ide是提高效率的,不是装逼的。
多折腾ide能让你写代码写得快些,并不能写得更优雅,因此如果本来写的是一坨翔,只能让你写出更多翔。 我用sublime text 3 感觉不错 【Visual Studio Code】 ,一个运行于 OS X,Windows 和 Linux 之上的,由Microsoft针对于编写现代 web 和云应用的跨平台编辑器。


PHPStorm 集成 CodeSniffer. 写出诗一样的代码。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



PHP 8.4 brings several new features, security improvements, and performance improvements with healthy amounts of feature deprecations and removals. This guide explains how to install PHP 8.4 or upgrade to PHP 8.4 on Ubuntu, Debian, or their derivati

If you are an experienced PHP developer, you might have the feeling that you’ve been there and done that already.You have developed a significant number of applications, debugged millions of lines of code, and tweaked a bunch of scripts to achieve op

Visual Studio Code, also known as VS Code, is a free source code editor — or integrated development environment (IDE) — available for all major operating systems. With a large collection of extensions for many programming languages, VS Code can be c

JWT is an open standard based on JSON, used to securely transmit information between parties, mainly for identity authentication and information exchange. 1. JWT consists of three parts: Header, Payload and Signature. 2. The working principle of JWT includes three steps: generating JWT, verifying JWT and parsing Payload. 3. When using JWT for authentication in PHP, JWT can be generated and verified, and user role and permission information can be included in advanced usage. 4. Common errors include signature verification failure, token expiration, and payload oversized. Debugging skills include using debugging tools and logging. 5. Performance optimization and best practices include using appropriate signature algorithms, setting validity periods reasonably,

This tutorial demonstrates how to efficiently process XML documents using PHP. XML (eXtensible Markup Language) is a versatile text-based markup language designed for both human readability and machine parsing. It's commonly used for data storage an

A string is a sequence of characters, including letters, numbers, and symbols. This tutorial will learn how to calculate the number of vowels in a given string in PHP using different methods. The vowels in English are a, e, i, o, u, and they can be uppercase or lowercase. What is a vowel? Vowels are alphabetic characters that represent a specific pronunciation. There are five vowels in English, including uppercase and lowercase: a, e, i, o, u Example 1 Input: String = "Tutorialspoint" Output: 6 explain The vowels in the string "Tutorialspoint" are u, o, i, a, o, i. There are 6 yuan in total

Static binding (static::) implements late static binding (LSB) in PHP, allowing calling classes to be referenced in static contexts rather than defining classes. 1) The parsing process is performed at runtime, 2) Look up the call class in the inheritance relationship, 3) It may bring performance overhead.

What are the magic methods of PHP? PHP's magic methods include: 1.\_\_construct, used to initialize objects; 2.\_\_destruct, used to clean up resources; 3.\_\_call, handle non-existent method calls; 4.\_\_get, implement dynamic attribute access; 5.\_\_set, implement dynamic attribute settings. These methods are automatically called in certain situations, improving code flexibility and efficiency.
