Quantcast
Channel: PHPDeveloper.org
Viewing all 1515 articles
Browse latest View live

Acquia Blog: PHP: Under the Hood, Running the Web

$
0
0

The Acquia blog (of the Drupal community) has posted another in their series of guest posts with members of the wider PHP community. In this latest post well known PHP speaker and developer Michelangelo van Dam talks about PHP as a language that's "Under the Hood, Running the Web".

Most non-technical people out on the Web haven't heard of PHP before. They might not have even heard of many of the products that were built with this technology like Drupal, Magento, or WordPress. And together with other products built with PHP, these run about 83% of all internet web applications. The technology of PHP is very important to an enormous number of businesses, governments, and organisations around the world, so even though people might not be familiar with the language itself, there's a very good chance they've used it online today.

He talks about the recent movements in the PHP community to be more standards-driven and focusing on better performance overall (both in applications and the language itself). He points to the work the Drupal community has done adopting Symfony components and the gains it gives them. He also mentions the huge impact things like Composer and the PHP Framework Interoperability Group have had on the PHP community and ecosystem.

Yes, the future of PHP looks very promising and the community is on a roll. [...] With strong communities working hard on each technological level and better able to cooperate than ever before, PHP will prevail where other technologies have failed. And let's have fun while we're at it!
Link: https://www.acquia.com/blog/php-under-hood-running-web

Lee Blue: PHP vs Ruby - Application Shelf Life

$
0
0

Lee Blue has started up a series of posts talking about his reasoning for moving back to PHP from Rails in his applications. In his first post of the series, he looks at application "shelf life" and the overall lifespan of the project and how that relates to things like maintainability and upgrade handling.

I plan to write a series of posts about how we develop, deploy, and support our affiliate software and digital downloads applications. And why, after 5 years of Ruby on Rails development we switched back to PHP. One of the reasons is what I refer to as the shelf life of a web application. Let's talk about what happens to a web application if you just let it sit.

He talks about the "rotting on the vine" that one of his clients' Rails 1.0 application faced when the later versions of the Ruby on Rails framework. He talks about how these kinds of upgrades cost money (and time) and how, with the right selections for the deployment stack, some of the costs could be alleviated. He gives the example of a PHP-based deployment setup and how much of the related technology has been stable and (mostly) unchanging over the years, just with new features being added. He offers a few suggestions to avoid this "app rot" and things startups/freelancers can do to help prevent it in their clients' applications.

Link: http://leehblue.com/php-vs-ruby-application-shelf-life/

Site News: Blast from the Past - One Year Ago in PHP

$
0
0

Community News: Packagist Latest Releases for 12.11.2014

$
0
0
Recent releases from the Packagist:

SitePoint PHP Blog: 7 CRM Options Compatible with Drupal

$
0
0

The SitePoint PHP blog has posted a list of seven customer relationship management tools (CRM) that play nice with Drupal, a popular PHP-driven content management system.

Whether you want to call Drupal a CMS (Content Management System), a CMF (Content Management Framework) or a CMSomething, the 'C' always stands for Content. Content is where Drupal shines and is what it's designed for. [...] When an organisation is at a stage and mindset that they also want to manage their contacts and interactions effectively they will often need tools designed specifically for that function. These are generally referred to as a CRM, which stands for Client Relationship Manager or Constituent Relationship Manager, depending on the sector (For-Profit or Not-for-Profit respectively)

[...] What has a CRM got to do with Drupal? Nothing directly, but indirectly if you're looking to streamline your business operations and automate the ways people can interact with you, your CRM will need to work well with your website. [...] In this article, we will look at several of the big players in the CRM space that work well with Drupal, how they integrate or how developers can get them to integrate.

They start with a list of five of the seven options:

  • Roll it yourself
  • RedHen
  • CiviCRM
  • Salesforce
  • Sugar CRM

They also provide a few other options combining a few technologies: Microsoft Dynamics and BlackBaud or Nation Builder and Salsa. Links and a brief summary of the project are included for each item in the list. He ends with a few tips about the actual integration, including the use of the CRM tool's API or using the Migrate Drupal module.

Link: http://www.sitepoint.com/7-crm-options-compatible-drupal/

KodeInfo.com: Pay with Bitcoin using Coinbase and Bitpay

$
0
0

On KodeInfo.com there's a new tutorial posted showing you how to let your users pay with Bitcoin made possible using Coinbase, a Bitcoin wallet service, and BitPay, a payment gateway. Their example is a Laravel-based application.

Today we will learn how to integrate payment with bitcoins , we will integrate coinbase and bitpay to pay with bitcoins .

They walk you through the full process, including getting the accounts set up on the needed services:

  • Setting up Bitpay
  • Setting up Coinbase
  • Creating migrations
  • Views and Routes
  • Config File
  • Creating models
  • Integrating Bitpay
  • Integrating Coinbase

Each step is accompanied by screenshots or code, depending on what steps are needed. If you want to jump to the end, you can also grab the full code directly from GitHub.

Link: http://kodeinfo.com/post/pay-with-bitcoin-using-coinbase-and-bitpay

Acim.net: Trait injection in Zend Framework 2

$
0
0

Boban Acimovic has recently posted a tutorial showing you how to use traits in a Zend Framework 2 application to inject additional functionality into your pre-existing classes.

There are several tutorials on the Internet which explain how to use interface based dependency injection in Zend Framework 2. The idea is to make an initializer, figure out which interfaces a class implements and then inject appropriate dependencies using setters defined in the interfaces. Bad part about this is that in each class you implement such an interface you have to declare a property which would hold the injected object and also to implement the setter for it, which is defined in the interface, by the way. In order to simplify this further it is possible to write trait for each interface, but then why should not use just traits? Why do we need interfaces? Is this possible at all?

He includes some example code showing how to set up dependency injection for the traits (via a custom injector based on the "InitializerInterface") and make the autoloading easier. He shows how to add this to the provider configuration as an "initializer" and create the first example trait, a checker for data in user passwords. He then drops the functionality into a service class just by using the "use" keyword and the trait name.

Link: http://www.acim.net/2014/11/trait-injection-in-zend-framework-2/

Fabian Schmengler: Why I Am Actively Going to Drop PHP 5.3 Compatibility

$
0
0

In a recent post to his site Fabian Schmengler has proposed a PHP 5.3 "Death March" in an effort to try to drop PHP 5.3 compatibility for applications and encourage the growth of PHP 5.4 and beyond.

An alarming large amount of websites still runs on PHP 5.3, which does not get updated anymore since 2014/08/14, after one year of "security only" support. In other words, the next critical security hole will only be fixed for versions above 5.4. By the way, active development of the PHP 5.4 branch was discontinued on 2014/09/14. it's already in the "security only" phase. On 2014/08/28, PHP 5.6 has been released, on 2013/06/20, almost 1.5 years ago, PHP 5.5. So, by now, in the year 2014 everybody should work on PHP 5.5, right? [...] Almost half of the Alexa Top 1M Sites that run on PHP, state the version 5.3, ca. one quarter even 5.2, which is not supported since Jan. 2011. PHP 5.2.17 even is the most used patch version in this statistic.

He goes through some of the thinks might be contributing to this drag in adoption including the slow migration of official Linux distribution packages and the incompatibility of applications and frameworks with newer PHP versions. He makes a few suggestions of what different groups can do to help the cause - developers, project managers and hosting companies. He provides a list of things that are either deprecated in 5.4 or have been completely removed.

Link: http://www.schmengler-se.de/en/2014/11/why-i-am-actively-going-to-drop-php-5-3-compatibility/

Site News: Popular Posts for the Week of 12.12.2014

$
0
0

Community News: Packagist Latest Releases for 12.12.2014

$
0
0
Recent releases from the Packagist:

AirPair.com: Automating Laravel Deployments Using Capistrano

$
0
0

On the AirPair site there's a recent post by Vincent Cardillo showing you how to set up Laravel deployments with Capistrano, a popular Ruby-based deployment automation tool.

Hello friends. In this article we will be discussing automating the deployment of Laravel applications using the Capistrano tool. If you don't know what some of these things are, read on. [...] Why should we bother setting up Capistrano? Can't we just deploy to our servers by hand? Sure, maybe, but this quickly becomes annoying with anything more than a few servers, and isn't a scalable process.

He starts by laying out some of the prerequisites you'll need to get the deployment working: a Laravel application installed, some familiarity with Git/GitHub and a Linux-based system to work from. He talks about two methods of deployment, push and pull, and includes a summary (and illustration) for each. From there he starts to get into the detailed steps of setting up the deployment itself:

  • Protecting sensitive information (like configuration files)
  • Installing Capistrano as a Ruby gem
  • Setting up the SSH keys between systems
  • Setting up the receiving server
  • Setting up the Laravel project in a Capistrano deploy
  • Creating the steps in the deployment workflow
  • Doing the actual deployment

He includes all of the commands and configuration examples you'll need to make the deployment happen. He also finishes off with a few other things Capistrano could do for you including making a "sanity check" file and flushing memcache on deploy.

Link: https://www.airpair.com/laravel/posts/automating-laravel-deployments-using-capistrano

That Podcast: Episode 12: The one where we find the time to discuss not finding the time

$
0
0

That Podcast, with PHP community member hosts Beau Simensen and Dave Marshall, has released their latest episode today: Episode #12, The one where we find the time to discuss not finding the time.

Beau and Dave take time out of there busy schedules to discuss what they've been up to recently and get in to the how they do or don't find the time for side projects and open source, in and around work and family.

There's lots of different topics touched on in this episode including:

You can listen to this latest episode either through the in page player or by downloading the mp3 for listening offline. If you enjoy the episode be sure to subscribe to their feed too!

Link: http://thatpodcast.io/episodes/episode-12-the-one-where-we-find-the-time-to-discuss-not-finding-the-time/

Remi Collet: PHP-FPM in Docker

$
0
0

Remi Collet has a new post today showing you how to get PHP-FPM up and running with Docker using a few simple lines in the Dockerfile. Docker is a toolset that lets you easily create and provision containers with scripted configurations (and link them together).

[The] use case [for this is] running php 5.3.3 on a Fedora 20 / 21 development workstation, for production deployment on RHEL-6 (as no php 5.3 SCL exists). This example can be easily adapted for all available PHP versions available as RPM (5.3.3 in RHEL-6, 5.4.16 in RHEL-7, 5.4.16 and 5.5.6 in RHSCL 1.2 or using a third party repository).

The contents of the Dockerfile are included, making a call to yum to install all the needed packages, make a few replacements in the www.conf configuration file and create the default "www" directory. Finally, it fires up the PHP-FPM server with the IP given in the startup. The commands to create the container and launch it are also included in the post.

Link: http://blog.famillecollet.com/post/2014/12/11/PHP-FPM-in-Docker

Symfony Blog: The Symfony 500 + 100 Challenge

$
0
0

The Symfony blog pas posted something they're calling the Symfony 500 + 100 Challenge, an effort to kickstart some backlog cleanup of the number of issues currently in the project's backlog.

The end of the year is approaching, and we think that this is the best time to do some backlog cleaning before fresh starting the new year. Right now there are 728 pending issues in symfony/symfony repository and 177 issues in symfony/symfony-docs.

Some of those issues were reported a long time ago and they probably refer to Symfony versions that are no longer maintained. Others would have been fixed but not closed and there could also be some duplicates. That's why we ask your help to review all the pending issues in order to close irrelevant issues and achieve much more manageable levels: 500 issues or less for symfony/symfony and 100 issues or less for symfony/symfony-docs.

If you're interested in helping out, they've included a few steps to get you started locating and claiming an issue for you to work on. They also make suggestions on how to report back issues found on bugs, feature requests and general discussion items.

Link: http://symfony.com/blog/the-symfony-500-100-challenge

Community News: Packagist Latest Releases for 12.13.2014

$
0
0
Recent releases from the Packagist:

Community News: Packagist Latest Releases for 12.14.2014

$
0
0
Recent releases from the Packagist:

Community News: Packagist Latest Releases for 12.15.2014

$
0
0
Recent releases from the Packagist:

Stanislav Malyshev: Objects as keys

$
0
0

In his latest post Stanislav Malyshev looks at a RFC he's proposed to allow array keys to be objects including some of his thoughts behind the proposal and how he sees it being helpful to the language.

I'm going to put to vote soon another of my RFCs, namely one about "objects as keys". So, I want to outline the case for it here and address some criticisms and questions raised while discussing it.

He starts off by answering the "why" question, mentioning specially the introduction of things like GMP numbers and how, despite them seeming to work like numbers, other things can be done with them. He talks about how you'd use this functionality "the right way" and how that'd relate back to value objects. He answers a few other questions about the proposal including why it's better than just using __toString or spl_object_hash instead. He spends the rest of the post looking at some of the implementation problems, disadvantages and some of the possible names (function names) for the handling.

Link: http://php100.wordpress.com/2014/12/14/objects-as-keys/

Christoph Rumpel: 10 Things That Will Make You a Better Developer

$
0
0

Christoph Rumpel has posted a list of ten things he thinks will help you be a better programmer overall.

It is easy to become a web developer these days. The only things you need is a computer and Internet. But I believe there is big difference between a developer and a good one. Good developers are like little heroes. They are awesome in what they do and are there when you need them. A real benefit to the our world and definitely someone you can look up to! I believe everyone can make this step and start being a better developer today. This is why I asked great developers from all around the world what they think makes someone a really good developer.

His list covers more than just good coding practices too. He suggests things like:

  • Experimentation
  • Reading the code of other good developers
  • Just build websites
  • Contribute to other projects
  • Watch out for the Hypetrain
  • Never give up

He includes a quick summary of each of these and the rest of the top ten list too. Be sure to check out the full post for more.

Link: http://christoph-rumpel.com/2014/12/10-things-that-will-make-you-a-better-developer/

Laravel News: The Artisan Files: Sara Bine

$
0
0

The Laravel News site has posted their latest interview in their "Artisan Files" series with this look into the world of Sara Bine, a developer from Denver, Colorado.

In the interview she answers questions about:

  • Her background in development and how she got started
  • What some of her favorite open source packages are
  • Her "must have" desktop and mobile applications are
  • Hobbies outside of development
  • Tips for people looking to make a career out of programming

She advises developers to try one new thing every day and building projects around things that interest you. Also...

As far as career advice goes, while I'm not far into my own career I'll pass on the best advice I've received so far: it's not up to you to decide if you're qualified for a job, so don't be afraid to apply.

If you're interested in other interviews with members of the Laravel community, check out the rest of the Artisan Files too!

Link: https://laravel-news.com/2014/12/artisan-files-sara-bine/
Viewing all 1515 articles
Browse latest View live