PHPackages                             grant/powerschool-plugin-xml-builder - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. grant/powerschool-plugin-xml-builder

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

grant/powerschool-plugin-xml-builder
====================================

Build a plugin XML file for PowerSchool fluently.

1.0.0(5y ago)201MITPHPPHP ^7.2

Since Aug 13Pushed 5y ago1 watchersCompare

[ Source](https://github.com/grantholle/powerschool-plugin-xml-builder)[ Packagist](https://packagist.org/packages/grant/powerschool-plugin-xml-builder)[ RSS](/packages/grant-powerschool-plugin-xml-builder/feed)WikiDiscussions main Synced 5d ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

PowerSchool plugin.xml Builder
==============================

[](#powerschool-pluginxml-builder)

A package to help build valid xml for a PowerSchool plugin.

Installation
------------

[](#installation)

```
composer require grantholle/powerschool-plugin-xml-builder
```

Usage
-----

[](#usage)

You can fluently build up the tags and attributes of your plugin to generate valid xml.

```
use GrantHolle\PowerSchool\Plugin\PluginXmlBuilder;
use GrantHolle\PowerSchool\Plugin\UiContext;

/**
 * @var string
 */
$output = (new PluginXmlBuilder)
    ->version('1.1.1')
    ->description('A simple plugin')
    ->name('Simple Plugin')
    ->publisher('Joe Montana', 'joe@nfl.com')
    ->openId('example.com', 8443)
    ->addOpenIdLink('My OpenID link', '/path', 'My OpenID title', [
        UiContext::ADMIN_HEADER,
        UiContext::STUDENT_HEADER,
    ])
    ->addLink('My link', 'http://example.com', 'My title', UiContext::GUARDIAN_HEADER)
    ->addAccessRequest('students', 'dcid')
    ->addAccessRequest('students', 'first_name', true)
    ->addAccessRequest('students', 'last_name', true)
    ->saml('mysaml', 'http://example.com/saml', 'http://example.com/', 'http://example.com/metadata')
    ->addSamlLink('SAML', 'http://example.com/saml/login', 'SAML SP', [
        UiContext::ADMIN_HEADER,
        UiContext::ADMIN_LEFT_NAV,
    ])
    ->addSamlAttribute('admin', 'firstName')
    ->addSamlAttribute('admin', 'lastName', 'altLastName', 'myvalue')
    ->addSamlAttribute('student', 'first_name', 'first')
    ->addSamlPermission('permission1', 'A sample permission', 'abc123')
    ->addSamlPermission('permission2', 'Another sample permission', 'def456')
    ->oauth()
    ->autoEnable()
    ->autoRegister()
    ->autoDeploy()
    ->cantDelete()
    // By default is "pretty" and validated
    ->create();
    // Not pretty
    // ->create(false);
    // Not pretty or validated
    // ->create(false, false);
```

By default, the xml will be validated against the [spec](src/plugin.xsd). If you'd like for it to not be "pretty," pass `false` to `create()`.

The above snippet will generate the following `plugin.xml`:

```

```

License
-------

[](#license)

[MIT](LICENSE.md)

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2103d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/57ed974235b4a23e6aaf9d9039bff2b0d1268edc0e44ebab6e60e4bf1e6eb144?d=identicon)[grantholle](/maintainers/grantholle)

---

Top Contributors

[![grantholle](https://avatars.githubusercontent.com/u/1189456?v=4)](https://github.com/grantholle "grantholle (5 commits)")

---

Tags

powerschoolpowerschool pluginplugin.xml

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/grant-powerschool-plugin-xml-builder/health.svg)

```
[![Health](https://phpackages.com/badges/grant-powerschool-plugin-xml-builder/health.svg)](https://phpackages.com/packages/grant-powerschool-plugin-xml-builder)
```

###  Alternatives

[yourls/yourls

Your Own URL Shortener

11.9k27.7k1](/packages/yourls-yourls)[illuminated/helper-functions

Laravel-specific and pure PHP Helper Functions.

107586.6k7](/packages/illuminated-helper-functions)[wi1dcard/china-divisions

中国行政区划地址库 SDK + 爬虫 + 数据。

2204.1k1](/packages/wi1dcard-china-divisions)

PHPackages © 2026

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