PHPackages                             gammamatrix/site-api-angular - 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. [API Development](/categories/api)
4. /
5. gammamatrix/site-api-angular

ActiveProject[API Development](/categories/api)

gammamatrix/site-api-angular
============================

Playground: This is a base application site for Laravel based Playground APIs and Angular UIs.

00PHP

Since Jul 25Pushed 1y ago1 watchersCompare

[ Source](https://github.com/gammamatrix/site-api-angular)[ Packagist](https://packagist.org/packages/gammamatrix/site-api-angular)[ RSS](/packages/gammamatrix-site-api-angular/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Site: Playground API and Angular SPA Integration
================================================

[](#site-playground-api-and-angular-spa-integration)

[![Playground CI Workflow](https://github.com/gammamatrix/site-api-angular/actions/workflows/ci.yml/badge.svg?branch=develop)](https://raw.githubusercontent.com/gammamatrix/site-api-angular/testing/develop/testdox.txt)[![Test Coverage](https://raw.githubusercontent.com/gammamatrix/site-api-angular/testing/develop/coverage.svg)](tests)[![PHPStan Level 9 src and tests](https://camo.githubusercontent.com/b72adb1f27170ecf486459c4b07e920bb3db2b464444bce8277e018270665646/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d6c6576656c253230392d627269676874677265656e)](.github/workflows/ci.yml#L133)

Site: Playground API and Angular SPA Integration Package for [Laravel v11](https://laravel.com/docs/11.x) and [Angular v16, v17, v18](https://angular.dev/) applications.

Read more on using [Site: Playground API and Angular SPA Integration at Read the Docs: Playground Documentation.](https://gammamatrix-playground.readthedocs.io/en/develop/)

Angular Application
-------------------

[](#angular-application)

### Site: Playground CMS UI with Angular

[](#site-playground-cms-ui-with-angular)

Currently, there are two Angular applications available to use with this base Laravel application.

#### CMS with Angular v16 and Angular Material

[](#cms-with-angular-v16-and-angular-material)

See: [gammamatrix/site-playground-cms-angular](https://github.com/gammamatrix/site-playground-cms-angular)

[![Screenshot of the CMS Dashboard with Angular v16 and Angular Material](resources/docs/site-playground-cms-angular-material.png)](resources/docs/site-playground-cms-angular-material.png)

[![Screenshot of the CMS Snippets Index with Angular v16 and Angular Material](resources/docs/site-playground-cms-angular-material-snippets.png)](resources/docs/site-playground-cms-angular-material-snippets.png)

#### CMS with Angular v18 and Bootstrap v5

[](#cms-with-angular-v18-and-bootstrap-v5)

See: [gammamatrix/site-playground-cms-angular-bootstrap](https://github.com/gammamatrix/site-playground-cms-angular-bootstrap)

[![Screenshot of the CMS Dashboard with Angular v18 and Boostrap with dark mode](resources/docs/site-playground-cms-angular-bootstrap-dark-mode.png)](resources/docs/site-playground-cms-angular-bootstrap-dark-mode.png)

Toggle User InformationUsers
-----

[](#users)

By default, this application uses a user with a UUID for a primary key: [app/Models/PlaygroundUser.php](app/Models/PlaygroundUser.php).

- auto-incrementing is also supported with the standard [app/Models/User.phps](app/Models/User.phps), which has been renamed as a source file.

Toggle Testing and Development InformationTesting and Development
-----------------------

[](#testing-and-development)

### Users

[](#users-1)

[Playground Test](https://github.com/gammamatrix/playground-test) provides a [custom user table seeder: CustomUsersTableSeeder](https://github.com/gammamatrix/playground-test/blob/develop/resources/CustomUsersTableSeeder.php) for development.

- There is also a [DatabaseSeeder](https://github.com/gammamatrix/playground-test/blob/develop/resources/DatabaseSeeder.php) class that will import `Custom*Seeders` used in this application: [database/seeders/DatabaseSeeder.php](database/seeders/DatabaseSeeder.php).

The user model is set up in [config/auth.php](config/auth.php#L65):

```
'providers' => [
    'users' => [
        'driver' => 'eloquent',
        'model' => env('AUTH_MODEL', App\Models\PlaygroundUser::class),
    ],
],
```

#### Setting up users for testing

[](#setting-up-users-for-testing)

For security reasons, the CustomUsersTableSeeder must be manually linked or copied to this application:

```
cd database/seeders
```

```
ln -snf ../../vendor/gammamatrix/playground-test/resources/CustomUsersTableSeeder.php
```

Toggle Dev NotesDev Notes
---------

[](#dev-notes)

A base Laravel installation was used.

```
composer create-project laravel/laravel site-api-angular
```

### Enabled Sanctum

[](#enabled-sanctum)

Added `Laravel\Sanctum\HasApiTokens` to the [User](app/Models/User.php) model.

```
php artisan install:api
php artisan config:publish cors
```

```
SESSION_DOMAIN=site-api-angular
# SESSION_DOMAIN=site-playground-integration
SESSION_HTTP_ONLY=false
SESSION_SECURE_COOKIE=false

SANCTUM_STATEFUL_DOMAINS=site-api-angular

```

```
composer require gammamatrix/playground-cms-api
```

- composer.json need to allow `"minimum-stability": "dev",`

nginx configuration for the PHP API and Angular app
---------------------------------------------------

[](#nginx-configuration-for-the-php-api-and-angular-app)

[resources/configuration/31010-site-api-angular.conf](resources/configuration/31010-site-api-angular.conf)

- Note development is done on http with scheme-less URLs, where possible.

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity18

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/a309c28cee3aff88250942e5bc4d01f2d5a53f8b52456f6352adc338dc9a121b?d=identicon)[gammamatrix](/maintainers/gammamatrix)

---

Top Contributors

[![gammamatrix](https://avatars.githubusercontent.com/u/524724?v=4)](https://github.com/gammamatrix "gammamatrix (8 commits)")

### Embed Badge

![Health badge](/badges/gammamatrix-site-api-angular/health.svg)

```
[![Health](https://phpackages.com/badges/gammamatrix-site-api-angular/health.svg)](https://phpackages.com/packages/gammamatrix-site-api-angular)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
