App Development

Intro

Before you start, please check if there already is a similar app in the App Store, or an official ownCloud app (see Apps Repo and Other app repos) that you could contribute to. Also, feel free to communicate your idea and plans to the user mailing list or developer mailing list so other contributors might join in.

Then, please make sure you have set up a development environment:

Before starting to write an app please read the security and coding guidelines:

After this you can start with the tutorial

Once you are ready for publishing, check out the app store process:

For enhanced security it is also possible to sign your code:

App development

Take a look at the changes in this version:

Create a new app:

Inner parts of an app:

Requests

How a request is being processed:

View

The app’s presentation layer:

Storage

Create database tables, run Sql queries, store/retrieve configuration information and access the filesystem:

Authentication & Users

Creating, deleting, updating, searching, login and logout:

Writing a two-factor auth provider:

Hooks

Listen on events like user creation and execute code:

Background Jobs

Periodically run code in the background:

Logging

Log to the data/owncloud.log:

Testing

Write automated tests to ensure stability and ease maintenance:

PHPDoc Class Documentation

ownCloud class and function documentation:

All documentation licensed under the Creative Commons Attribution 3.0 Unported license.