Today we're going to give you a quick overview of PHP type hints. While the debate over how strongly PHP should be typed rages on, many PHP frameworks have started using type hints as metadata for implementing features like dependency injection. Whatever you think
astorm
After spending a bit of time poking around a Magento 1 codebase (I still do that -- say hi if you need my help), I was reminded that Magento 2 is going to be some developer's first major experience with PHP namespaces. Beyond Magento
astorm
Just a quick note that Commerce Bug 2.5 is out, official boring press release-ish announcement here, free upgrade for registered users, and a screencast of the one new feature below.
astorm
AOEpeople/MageTestStand This tool is used to build a minimal Magento environment that allows to run PHPUnit tests for a Magento module on Travis CI.
astorm
clockworkgeek/MagentoTagToConnect Clever bit of programming from clockworkgeek (Daniel Deady) that lets you turn any Magento project with a composer.json file into a Magento Connect package.
astorm
Last time we finished up our look at Laravel 4.2's autoloader implementation. Like a lot of features in Laravel, (or any framework), once you pull out the microscope sharp edges begin to jut out everywhere.
astorm
Pop quiz hotshot! You've put in a long day of programming. Your data models are complete, the prototype UI is done. You're going to end the day creating a simple Laravel command. You run command:make
astorm
Last time we said we'd be wrapping up our series on the Laravel 4.2 autoloader. Apparently we were fibbing, because I just realized we've failed to cover a key concept in Laravel autoloading, and one that would be impossible to shoe horn into
astorm
This one's a quick article to transition us from Composer back into Laravel. Also, in a rare bit of timely news, the Laravel core team just released Laravel 5.0. This release features some really big new features (a task runner!), promotion of
astorm
We're jumping in mid-steam this week, so be sure to catch the first half of this article, as well as the initial article that kicked off the series.
astorm
Today we're going to veer slightly away from Laravel, and take a look at Composer's autoloading features. While Composer bills itself as a "Dependency Manager", its real strength is that it gives PHP developers a standard environment to build their applications in.
astorm
Where Magento Connect does Check for Permissions Magento Connect, File Permissions, and myself have a rocky, inconsistent relationship. This one’s the opposite of my usual complaints – if Connect’s saying it can’t install itself due to file file permissions errors, here’s where to check which directories it [...]
astorm
PHP, the language, leaves a lot to be desired when it comes to sharing and organizing your code in a project. This problem goes back to PHP's roots, and the choice not to include a python or ruby like module system. Over the years
astorm
Magento Sellers Guide to Sales Tax A relatively straight forward article about how to collect sales tax for an ecommerce business. It’s remarkable how much hand waving there is about this from agencies representing themselves as ecommerce experts.
astorm
If Magento 2 is your first introduction to PHP namespaces, here’s one small thought technology that might help. Consider the following namespace FooBaz; class Bar { } The above does not define a class named Bar. It defines a class named “FooBazBar”. That’s how PHP sees the class internally, and once you start [...]
astorm
If you’re trying to use the browser setup workflow in the Magento 2 beta released in December of 2014, make sure your web server is using the index.php in the root of the project and not the pub/index.php file. It’s unclear which index.php is “the right” file to point to – the pub folder seems to be an [...]
astorm
If you’re using Vagrant to manage your Magento 2 installations, you’ll want to be careful with file permissions. By default, it appears that Vagrant’s synced folder setup won’t allow the apache/web user to create folders with permissions elevated higher than the default sync share. Dropping in some custom mount [...]
astorm
Magento 2 Profiler There’s still a lot of work to be done before Magento 2 is ready for general release, and a lot of that work will involve performance tuning. The old UI for enabling/disabling the built in profiler is gone, but this Stack Exchange answer from Marko Martinović tells you how to enable it. (a MAGE_PROFILER server [...]
astorm
Two Vagrant boxes for the newly released Magento 2 beta. The first is maintained by Rolando Granadino (beeplogic to Twitter folks), and is a fully featured opinionated box, with puppet provisioning, web grind for xDebug profiling, and git submodules for project dependencies. The second is a lightweight affair from Alan Kent, Magento [...]
astorm
So far in this series we've stayed pretty focused on core Laravel concepts and their underlying implementation. However, this week we're going to go slightly farther afield and discuss some of the static method meta-programming used by Laravel's "Eloquent" ORM.
astorm