Download the PHP package modrictin/statamic-public-preview without Composer

On this page you can find all versions of the php package modrictin/statamic-public-preview. 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 statamic-public-preview

Statamic Public Preview

Version License

Big thanks to Links Der Isar company! They thought of this idea and I just implemented it.

Statamic Public Preview is a package that provides an action for generating public preview links for your Statamic websites. With this package, you can easily share a temporary preview of your site's content with clients, stakeholders, or team members without granting them full access.

This package is using additional table to store the preview links. It is not using the Statamic's native preview functionality. Because of this we are able to handle large amount of entries and collections.

Installation

To install the Statamic Public Preview package, follow these steps:

  1. Open your terminal or command prompt.
  2. Navigate to your Statamic project's root directory.
  3. Run the following command:

This command will download and install the package and its dependencies into your Statamic project.

Configuration

The package allows you to customize the database connection, table name, and the expiration time for preview links. To modify these settings, follow the steps below:

  1. Open your terminal or command prompt.
  2. Navigate to your Statamic project's root directory.
  3. Run the following command to publish the configuration file:

This command will create a configuration file named public-preview.php in your project's config directory.

Open the public-preview.php file and modify the desired settings according to your requirements.

Usage

Go to collection list view, and open the Action dropdown menu for the entry for which you want to generate a public preview link. Click on the Generate Public Preview Link option. This will generate a public preview link for the entry and redirect you to it.

Contributing

Contributions are welcome! If you encounter any issues, have suggestions, or want to contribute enhancements or new features, please feel free to open an issue or submit a pull request on the GitHub repository.

License

The Statamic Public Preview package is open-source software licensed under the MIT license.


All versions of statamic-public-preview with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1 || ^8.2
statamic/cms Version ^3.2 || ^4.0
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 modrictin/statamic-public-preview contains the following files

Loading the files please wait ....