This keeps your repository small and allows other developers, who have Composer installed, to bring it into their system. A dependency manager allows you to define what third-party software your project needs without actually having to bring it into your repository.This is one answer that could go on for a long time, but I want to keep it as direct and succinct as possible. Why Composer?Īs I mentioned earlier, why should we bother with something like Composer? Why not bring in all of the components into a single project and manage it from there. If it uses a different stack, then I’ll set up that environment when needed.Īll of that to say, don’t let certain attitudes dissuade you from using particular software because it’s “old” or “feels dated.” Be pragmatic and make smart decisions for you, your clients, and your tools. If the majority of my work is going to be built on a LAMP stack, then I’m okay using MAMP. That’s fine! I’m very much to each his/her own (as long as we’re staying up to date with what’s out there).īut I also want to balance knowledge and experience of what’s out there with a level of pragmatism. There are alternative web servers (such as Nginx)Īnd there is a segment of developers in the industry who are not a fan of solutions like that.There are new ways of building web applications.The thing is, a lot of new technologies have been released since then. It’s been around for a long time (that is, 2012 if I remember correctly) which is practically forever in Internet time. MAMP is a useful, powerful piece of software for web developers who want to get quickly and easily a web server, database, and several versions of PHP setup on their machine. But first, I want to talk a little bit about MAMP. In short, as the site suggests, “it’s a dependency manager for PHP.” But what does that mean? I’ll cover this in just a moment. If you’re working with WordPress, then you’re familiar with PHP at least to some degree however, Composer is still one of those things that are relatively new to a certain segment of the industry. Ultimately, the goal is to make it easier for you to write more modular code using third-party dependencies and with keeping things well-organized on your system and in your projects. I mean, if you’re completely inexperienced, there may be a bit of a learning curve, but I’m going to do what I can to break this down for you regardless of the level of experience you have. It’s not that any of this is intimidating. Coffee (or another drink, but seriously coffee) to read through all that’s below.MAMP installed on your machine ( it’s compatible with Windows now!).However, while it may be good for beginners, its lack of support for more advanced components places this app far behind its competitors.Lately, I’ve been trying to write shorter, more focused on articles on particular topics, but there are times in which a longer article is warranted: Case in point: Using PHP and Composer in MAMP.īefore you get started reading this article, I’m assuming you have a couple of things: Installing each component individually may take time, but deploying them at once in the package will be a lot quicker. The app deploys a basic web development toolset required to test and maintain websites. MAMP offers a good and easy option for web developers to test their web pages and web apps without the need for a steep learning curve. There is the MAMP Pro version, which supports some of these but not all of them. Moreover, it also does not support Xcache, Python, Perl, XDC, SQLBuddy, Xdebug, or Apache Tomcat. There is no support for other types of databases, such as SQLLite. It only offers basic web server components using MySQL as its main database system. However, unlike other open-source competitors, MAMP is rather subpar when it comes to the range of installed components. Simply put, MAMP is in itself a comfortable way to test web pages and web apps locally without accessing the internet. You can manage MySQL databases and run SQL statements via the PHPMyAdmin, while the PHP distribution makes it possible for web developers to create their websites. You can even manage the webserver without so much hassle. Thanks to the app’s intuitive and simple interface, you can start and stop the servers, change the used ports, and choose the PHP distribution version cache easily.
0 Comments
Leave a Reply. |