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.8.0(3mo ago)19536.2k↓27.7%6[1 issues](https://github.com/xp-framework/core/issues)[4 PRs](https://github.com/xp-framework/core/pulls)20BSD-3-ClausePHPPHP &gt;=7.4.0CI passing

Since Sep 1Pushed 3mo 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 1mo ago

READMEChangelog (10)DependenciesVersions (180)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)[![Build status on AppVeyor](https://camo.githubusercontent.com/3c157a8a521271c12ee5efe1df0b302d10e82fde2c0bfc9e5cf443da33f6a98c/68747470733a2f2f63692e6170707665796f722e636f6d2f6170692f70726f6a656374732f7374617475732f626239676b6b71316f3766366d326e733f7376673d74727565)](https://ci.appveyor.com/project/thekid/core)[![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 7.4+](https://raw.githubusercontent.com/xp-framework/web/master/static/php-7_4plus.svg)](http://php.net/)[![Supports 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.2.0/setup-9.2.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.8.1-dev { PHP/8.5.2 & Zend/4.5.2 } @ 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`:

```
