Download the PHP package samsoncms/api without Composer

On this page you can find all versions of the php package samsoncms/api. 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 api

SamsonCMS API module

Latest Stable Version Build Status Code Coverage Scrutinizer Code Quality Total Downloads Stories in Ready

SamsonCMS API for interaction with materials, fields and structures.

Additional fields table

After creating corresponding [Table structure]() and setting its [Additional fields]() you can get additional fields table object() ancestor for a specific ancestor you need to create class that extends generated additional fields table:

This class will contain generated generic methods for retrieving collection of table column values with according field name, for example if you have additional field with name method would be generated to get collection of values in all table rows.

Rendering custom additional field tables

[SamsonCMS]() will generate all created [Table structure]() automatically to simplify your code creation, the only thing that needs to be done is extending this generated classes and creating a views for outputting.

Remember is dependent on instance and uses it for rendering its views, so the path to views and views themselves should be located within this instance.

Default index view file

By default index view renders all rendered rows into view variable with name stored in - :

Default row view file

By default ancestor view object is stored in - :

Give a type hint to a generated ancestor and IDE will help outputting needed row data.

Navigation

Material

Added method for creating/updating material additional fields

Method find Field record in database by Field identifier and the receives its type for correct storing of additional field value.

Field

You can find additional field object by using one of provided methods:

All this methods requires first argument instance for performing database queries.

Regular usage example:

Last argument is optional and should be used for simple and beautiful condition creation:

Field value


All versions of api with dependencies

PHP Build Version
Package Version
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 samsoncms/api contains the following files

Loading the files please wait ....