PHPackages                             userapp/widget - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. userapp/widget

ActiveLibrary

userapp/widget
==============

PHP user widget for UserApp.

0.6.7(11y ago)67954[3 issues](https://github.com/userapp-io/userapp-php-widget/issues)MITJavaScript

Since Jun 19Pushed 11y ago3 watchersCompare

[ Source](https://github.com/userapp-io/userapp-php-widget)[ Packagist](https://packagist.org/packages/userapp/widget)[ Docs](http://github.com/userapp-io/userapp-php-widget)[ RSS](/packages/userapp-widget/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (1)Versions (15)Used By (0)

UserApp PHP Widget
==================

[](#userapp-php-widget)

Wraps the UserApp PHP client into a small and user-friendly API.

Getting started
---------------

[](#getting-started)

### Finding your App Id

[](#finding-your-app-id)

If you don't have a UserApp account, you need to [create one](https://app.userapp.io/#/sign-up/).

- **App Id**: The App Id identifies your app. After you have logged in, you should see your `App Id` instantly. If you're having trouble finding it, [follow this guide](https://help.userapp.io/customer/portal/articles/1322336-how-do-i-find-my-app-id-).

### Loading the library

[](#loading-the-library)

UserApp relies on the autoloading features of PHP to load its files when needed. The autoloading complies with the PSR-0 standard which makes it compatible with most of the major frameworks and libraries. Autoloading in your application is handled automatically when managing the dependencies with [Composer](https://packagist.org/packages/userapp/userapp).

#### Using Composer? Add this to your `composer.json`

[](#using-composer-add-this-to-your-composerjson)

```
{
	"require": {
		"userapp/widget": "~0.6.3"
	}
}

```

#### Not using Composer? Use the library's own autoloader

[](#not-using-composer-use-the-librarys-own-autoloader)

```
require 'autoload.php';

```

Example
-------

[](#example)

### bootstrap.php

[](#bootstrapphp)

```

    Username:
    Password:

		* Invalid username or password

```

### user/profile.php

[](#userprofilephp)

```

User id:
Username:
First name:
Last name:
Email:

Logout

```

### user/logout.php

[](#userlogoutphp)

```
