2017 © Pedro Peláez
 

library core

Xillion Core: Resource management library for PHP

image

xillion/core

Xillion Core: Resource management library for PHP

  • Friday, January 29, 2016
  • by joostfaassen
  • Repository
  • 1 Watchers
  • 1 Stars
  • 8 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Xillion Core: Resource Management Framework

, (*1)

What is Xillion?

Xillion is an framework for managing large amounts of resources in cross-service environments., (*2)

It's heavily inspired by Amazon's ARNs and security policies., (*3)

It allows for decentralized, highly flexible security access control, logging, and more., (*4)

This is work in progress. See test/ for examples of usage., (*5)

XRNs (Xillion Resource Names)

Xillion implements a Resource class that can be instantiated through an 'XRN'., (*6)

An XRN (Xillion Resource Name) is a special string format for identifying resources. It is heavily inspired by Amazons ARNs, (*7)

An XRN is a string separated by semicolons, and each section has a specific meaning:, (*8)

xrn:partition:service:region:account:resource
xrn:partition:service:region:account:resourcetype/resource
xrn:partition:service:region:account:resourcetype:resource
  • xrn: Every XRN starts with the prefix xrn
  • partition: Partitions are used if your applications and services are split into multiple "partitions". For example, if your app is used in both healthcare and business environments, and the resources in those environments should never have to interact, you can put those in their own partition. Example partition names: "business", "healthcare", "internal", "production", "staging", "public", etc.
  • Service: XRNs can be used to identify resources across services. This field would contain the service name that manages that resource. Example service names: "database", "authentication", etc
  • Region: If your service can be split over multiple regions (datacenters), you can identify those region names here. Example resource names "eu-west-1", "europe", "asia", "local", etc
  • account-id: If a resource is "owned" by a specific account, you can identify it here. Account names can be account ids, usernames, etc. Example account names: "18293123", "account-1", "customer-a", etc.
  • resourcetype: If your service manages multiple resource types, you specify them here. Example resource types: "vm", "disk", "ip", etc.
  • resource: This field contains the "id" or "key" of the resource of that specific type.

An example:, (*9)

xrn:staging:authentication:eu-1:joe:session/129332

This XRN identifies session 129332 in the authentication service of account joe in your eu-1 datacenter in the staging environment., (*10)

Running tests

vendor/bin/phpunit test/

License

MIT (see LICENSE), (*11)

Brought to you by the LinkORB Engineering team


Check out our other projects at linkorb.com/engineering., (*12)

Btw, we're hiring!, (*13)

The Versions

29/01 2016

dev-master

9999999-dev https://github.com/xillion-project/core

Xillion Core: Resource management library for PHP

  Sources   Download

MIT

The Development Requires

resource resources xrn arn

29/01 2016

v1.1.0

1.1.0.0 https://github.com/xillion-project/core

Xillion Core: Resource management library for PHP

  Sources   Download

MIT

The Development Requires

resource resources xrn arn

29/01 2016

v1.0.0

1.0.0.0 https://github.com/xillion-project/core

Xillion Core: Resource management library for PHP

  Sources   Download

MIT

The Development Requires

resource resources xrn arn