Download the PHP package lifespikes/php-beam without Composer

On this page you can find all versions of the php package lifespikes/php-beam. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package php-beam

Laravel-Inertia-Vite-React (LIVR)

Component of lifespikes/lifespikes

The title gives it away, doesn't it?

A Laravel package that provides a simple way to deploy Inertia applications powered by Vite and React.

Getting Started

Installation

Install the package using Composer:

You'll need to install the applicable Inertia, React, and Vite packages as well. We've included a package.json that will install those for you if you use a package manager bridge like Foxy.

While we try to keep everything as agnostic as possible, you might not be able to use our configuration helpers if you use an older version of these tools.

Quick Start

LIVR is a package with an opinionated stack, but everything else is up to you. There are two steps to configure LIVR:

Laravel Config

Our service provider wraps around innocenzi/laravel-vite and inertiajs/inertia-laravel. We provide a standard configuration for both libraries that should support most installations. You can configure PhpBeam using by overriding any of the config options found in config/php-beam.php.

JS Configuration

LIVR comes with a set of TypeScript files you can use to quickly get your environment going.

Simply begin by creating a vite.config.ts file in your project root, and import in our config helper:

Our helper will take care of generating the configuration for you. If there's any custom configuration you want to add, you can do so by passing it in as a first argument to the helper.

Root view, pages, and boot

The last step is providing the primary entrypoint and root view for your Inertia app. By default, our config will look for an entry point in resources/js/App.tsx and use its built-in root view.

You can customize any of these by specifying them in your php-beam config:

Usage

Inertia Entrypoints

We've tried to make setting up the entrypoint of your Inertia app as simple as possible. Once you specify your entrypoint (Or use the default one), you can use the createInertiaViteApp helper to set up your Inertia app.

If you want a more custom setup, like setting custom resolving logic, you can use the standard createInertiaApp helper. You can still use our resolvePageComponent helper for module resolution though!

Environment Configuration

The best way of customizing configuration for LIVR will be using environment variables. Modifying config values directly may cause issues with how LIVR synchronizes settings with its vite helpers.

Here is a list of the env vars you can use to customize LIVR:

Name Description
VITE_PUBLIC_DIR The public directory for your Vite app.
VITE_BUILD_DIR The build directory for your Vite app.
VITE_ENTRY_POINT Path to your entrypoint.
VITE_PORT The port for your Vite dev server.
VITE_URL The URL your dev server is bound to.
VITE_PUBLIC_URL The URL your dev server is accessible from.
VITE_SSL Whether or not to use SSL for your dev server.
VITE_SSL_KEY The SSL key for your dev server.
VITE_SSL_CERT The SSL cert for your dev server.
VITE_INERTIA_VIEW The root view for your Inertia app.

All versions of php-beam with dependencies

PHP Build Version
Package Version
Requires inertiajs/inertia-laravel Version ^v0.6
lifespikes/laravel-bare Version ^0.8.95
spatie/laravel-data Version ^3.7
spatie/typescript-transformer Version ^2.1
tightenco/ziggy Version ^1.5
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package lifespikes/php-beam contains the following files

Loading the files please wait ....