PHPackages                             infocyph/foundation - 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. infocyph/foundation

ActiveLibrary[Framework](/categories/framework)

infocyph/foundation
===================

Illuminate-style integration foundation for the Infocyph PHP ecosystem.

1.3(2w ago)0267↑33.3%1MITPHPPHP &gt;=8.4

Since Jul 13Pushed 1mo agoCompare

[ Source](https://github.com/infocyph/Foundation)[ Packagist](https://packagist.org/packages/infocyph/foundation)[ RSS](/packages/infocyph-foundation/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (24)Versions (9)Used By (1)

Foundation
==========

[](#foundation)

`Foundation` is the Infocyph application integration layer.

It does not replace the standalone packages. It gives a host project one place to bootstrap config, providers, routing, auth, cache, database, validation, filesystem paths, and runtime wiring.

Install
-------

[](#install)

```
composer require infocyph/foundation
```

Optional:

```
composer require infocyph/talkingbytes
```

Install `TalkingBytes` only if you want the `talkingbytes` notification driver.

Expected Project Structure
--------------------------

[](#expected-project-structure)

Your main app should look like this:

```
project-root/
  app/
  bootstrap/
    providers.php
  config/
    app.php
    auth.php
    cache.php
    database.php
  database/
  public/
    index.php
  resources/
  routes/
    web.php
    api.php
    auth.php
  storage/
    cache/
    logs/
    sessions/
    uploads/
  tests/
  composer.json

```

Foundation already knows these paths by default:

- `app/`
- `bootstrap/`
- `config/`
- `database/`
- `public/`
- `resources/`
- `routes/`
- `storage/`
- `storage/cache/`
- `storage/logs/`
- `storage/sessions/`
- `storage/uploads/`

Basic Bootstrap
---------------

[](#basic-bootstrap)

In `public/index.php`:

```
