search
HomeBackend DevelopmentPHP Tutorial如何在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
如何在Mac上优雅的开发PHP项目?

2. 数据库Client
Sequel Pro ,可以轻松的进行MySQL的各种操作,关键是人家还是免费的,我最喜欢的功能就是,可以通过一层SSH隧道进行MySQL的连接。
如何在Mac上优雅的开发PHP项目?

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

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

5. 文件传输
cyberduck.io/ 几乎支持所有的文件传输协议,非常方便
如何在Mac上优雅的开发PHP项目?6. 容我再想想 安利一下Coda2
简直是神器,上图
如何在Mac上优雅的开发PHP项目?
首先不管是远程开发还是本地开发,你都可以先设置一个“站点”可以配置url/ssh/ftp/git/db所有你需要的一切
如何在Mac上优雅的开发PHP项目?自动补全之类什么的就不说了,右边还可以快捷查询各种变量方法,还有别的一些快捷功能谁用谁知道
如何在Mac上优雅的开发PHP项目?
这里可以直接连接ssh,在服务器端各种操作,完全不需要用别的软件或者是Mac的控制台
如何在Mac上优雅的开发PHP项目?
要是不会写某个函数之类的,各种书随便查
如何在Mac上优雅的开发PHP项目?
同样也可以直接连接数据库,交互界面也十分友好
======================
Coda2不是IDE,但是你要是开发网站,只用它就够了!
panic.com/coda/

======================
看着题主被各种嘲讽真是于心不忍
知乎风气越来越坏了
得治 雇个秘书,然后口述。 优雅都是指代码优雅。
写的代码优雅,notepad码也一帮人跪舔。
写出一坨翔来,你就是把ide玩出花来也白搭。
多玩些实在的,少弄些虚的,代码能是靠ide优雅的么。
ide是提高效率的,不是装逼的。
多折腾ide能让你写代码写得快些,并不能写得更优雅,因此如果本来写的是一坨翔,只能让你写出更多翔。 我用sublime text 3 感觉不错 【Visual Studio Code】 ,一个运行于 OS X,Windows 和 Linux 之上的,由Microsoft针对于编写现代 web 和云应用的跨平台编辑器。
如何在Mac上优雅的开发PHP项目?【Brackets - A modern, open source code editor that understands web design.】Adobe 的开源 HTML/CSS/JavaScript 集成开发环境。Brackets 当前为Mac, Windows以及Linux (Debian/Ubuntu)提供最新稳定版的二进制发布, 源代码托管在GitHub上。
如何在Mac上优雅的开发PHP项目? 请看我年前写的 LatteCake - 如何优雅的使用 phpStorm 开发工具 brew + vim 应该能解决你所有问题。 Vagrant 虚拟一个Linux 。
PHPStorm 集成 CodeSniffer. 写出诗一样的代码。
Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
How can you check if a PHP session has already started?How can you check if a PHP session has already started?Apr 30, 2025 am 12:20 AM

In PHP, you can use session_status() or session_id() to check whether the session has started. 1) Use the session_status() function. If PHP_SESSION_ACTIVE is returned, the session has been started. 2) Use the session_id() function, if a non-empty string is returned, the session has been started. Both methods can effectively check the session state, and choosing which method to use depends on the PHP version and personal preferences.

Describe a scenario where using sessions is essential in a web application.Describe a scenario where using sessions is essential in a web application.Apr 30, 2025 am 12:16 AM

Sessionsarevitalinwebapplications,especiallyfore-commerceplatforms.Theymaintainuserdataacrossrequests,crucialforshoppingcarts,authentication,andpersonalization.InFlask,sessionscanbeimplementedusingsimplecodetomanageuserloginsanddatapersistence.

How can you manage concurrent session access in PHP?How can you manage concurrent session access in PHP?Apr 30, 2025 am 12:11 AM

Managing concurrent session access in PHP can be done by the following methods: 1. Use the database to store session data, 2. Use Redis or Memcached, 3. Implement a session locking strategy. These methods help ensure data consistency and improve concurrency performance.

What are the limitations of using PHP sessions?What are the limitations of using PHP sessions?Apr 30, 2025 am 12:04 AM

PHPsessionshaveseverallimitations:1)Storageconstraintscanleadtoperformanceissues;2)Securityvulnerabilitieslikesessionfixationattacksexist;3)Scalabilityischallengingduetoserver-specificstorage;4)Sessionexpirationmanagementcanbeproblematic;5)Datapersis

Explain how load balancing affects session management and how to address it.Explain how load balancing affects session management and how to address it.Apr 29, 2025 am 12:42 AM

Load balancing affects session management, but can be resolved with session replication, session stickiness, and centralized session storage. 1. Session Replication Copy session data between servers. 2. Session stickiness directs user requests to the same server. 3. Centralized session storage uses independent servers such as Redis to store session data to ensure data sharing.

Explain the concept of session locking.Explain the concept of session locking.Apr 29, 2025 am 12:39 AM

Sessionlockingisatechniqueusedtoensureauser'ssessionremainsexclusivetooneuseratatime.Itiscrucialforpreventingdatacorruptionandsecuritybreachesinmulti-userapplications.Sessionlockingisimplementedusingserver-sidelockingmechanisms,suchasReentrantLockinJ

Are there any alternatives to PHP sessions?Are there any alternatives to PHP sessions?Apr 29, 2025 am 12:36 AM

Alternatives to PHP sessions include Cookies, Token-based Authentication, Database-based Sessions, and Redis/Memcached. 1.Cookies manage sessions by storing data on the client, which is simple but low in security. 2.Token-based Authentication uses tokens to verify users, which is highly secure but requires additional logic. 3.Database-basedSessions stores data in the database, which has good scalability but may affect performance. 4. Redis/Memcached uses distributed cache to improve performance and scalability, but requires additional matching

Define the term 'session hijacking' in the context of PHP.Define the term 'session hijacking' in the context of PHP.Apr 29, 2025 am 12:33 AM

Sessionhijacking refers to an attacker impersonating a user by obtaining the user's sessionID. Prevention methods include: 1) encrypting communication using HTTPS; 2) verifying the source of the sessionID; 3) using a secure sessionID generation algorithm; 4) regularly updating the sessionID.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

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

Hot Tools

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor