PHPackages                             xp-framework/core - 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. [Framework](/categories/framework)
4. /
5. xp-framework/core

ActiveLibrary[Framework](/categories/framework)

xp-framework/core
=================

The XP framework is an all-purpose, object oriented PHP framework.

v12.11.0(1w ago)19546.1k↑17.4%6[1 issues](https://github.com/xp-framework/core/issues)[2 PRs](https://github.com/xp-framework/core/pulls)20BSD-3-ClausePHPPHP &gt;=7.4.0CI passing

Since Sep 1Pushed 6d ago16 watchersCompare

[ Source](https://github.com/xp-framework/core)[ Packagist](https://packagist.org/packages/xp-framework/core)[ Docs](http://xp-framework.net/)[ RSS](/packages/xp-framework-core/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (10)DependenciesVersions (186)Used By (20)

XP Framework Core
=================

[](#xp-framework-core)

[![Build status on GitHub](https://github.com/xp-framework/core/workflows/Tests/badge.svg)](https://github.com/xp-framework/core/actions)[![BSD License](https://raw.githubusercontent.com/xp-framework/web/master/static/licence-bsd.png)](https://github.com/xp-framework/core/blob/master/LICENSE.md)[![Requires PHP 8.0+](https://raw.githubusercontent.com/xp-framework/web/master/static/php-8_0plus.svg)](http://php.net/)[![Latest Stable Version](https://camo.githubusercontent.com/ceda305d51230a0572225564409a3bb580953b75a47f69ee3525674ba54ffa2c/68747470733a2f2f706f7365722e707567782e6f72672f78702d6672616d65776f726b2f636f72652f76657273696f6e2e737667)](https://packagist.org/packages/xp-framework/core)

This is the XP Framework's development checkout.

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

[](#installation)

If you just want to use the XP Framework, grab a release using `composer require xp-framework/core`. If you wish to use this development checkout, clone this repository instead.

### Runners

[](#runners)

The entry point for software written in the XP Framework is not the PHP interpreter's CLI / web server API but either a command line runner or a specialized *web* entry point. These runners can be installed by using the following one-liner:

```
$ cd ~/bin
$ curl -sSL https://github.com/xp-runners/reference/releases/download/v9.3.0/setup-9.3.0.sh | sh
```

### Using it

[](#using-it)

To use the the XP Framework development checkout, put the following in your `~/bin/xp.ini` file:

```
use=/path/to/xp/core
```

Finally, start `xp -v` to see it working:

```
$ xp -v
XP 12.11.1-dev { PHP/8.5.7 & Zend/4.5.7 } @ Windows NT SURFACE 10.0 build 26200 (Windows 11) AMD64
Copyright (c) 2001-2026 the XP group
FileSystemCL
FileSystemCL
FileSystemCL
FileSystemCL
FileSystemCL
```

Basic usage
-----------

[](#basic-usage)

The XP Framework runs scripts or classes.

### Hello World

[](#hello-world)

Save the following sourcecode to a file called `ageindays.script.php`:

```
