apidemia Official Laminas commercial vendor Book a free call

Who owns the code when you outsource software development?

Published on: 14-07-2023

Code ownership is one of the first legal questions that needs answering before a contract gets signed - and it matters more than most clients realize going in. Software code carries copyright like any other creative work. This article covers the specific case of work for hire, for an open-source web platform or application built on PHP and running on UNIX infrastructure.

Code ownership in contract clauses

By default, the copyright owner of code is whoever wrote it. A contract can shift that - to the coder's employer, or to whoever's paying for the development. At Apidemia, our default contract stipulates that the client owns the code.

Who owns the code when you outsource software development?

MIT license for frameworks and 3rd-party software

No serious software project starts from a blank file. Most start from a framework - the common functionality every project needs, like page navigation and user accounts - so that framework's ownership matters too. Every piece of code we use in our Dotkernel-based applications is MIT licensed, from the custom code we write to the 3rd-party libraries underneath it.

If it's MIT licensed, what stops us from sharing your custom source code publicly? The contract does. The code isn't secret, and MIT is an open-source license, but access stays limited to the developers explicitly assigned to your project. More importantly: you own the source code, which gives you full rights over it under the MIT license. Anyone else who wants to use it needs to ask you, not us.

MIT license, briefly

The MIT license is short and permissive - it lets you do essentially anything with the code as long as the original copyright and license notice stay attached to every copy. There are variations in circulation; here's the version we use.

From the MIT license:

"Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so"

How your code is actually structured

A simplified look at what a web application is made of:

So: the custom code built for your application - on Dotkernel or any other open-source stack - belongs to you.

Why work with Apidemia on this?

With twenty years of PHP experience, we're one of a select group of official Laminas commercial vendors - endorsed by the framework's own stewards - and most of our engineers hold ZCE (Zend Certified Engineer) certification.

Before we build on your platform, we already bet on our own. Our workflow uses AI agents, but every line of code is reviewed and tested by a certified engineer before it ships.

Talk to us about your platform.