Download the PHP package bramdeleeuw/silverstripe-schema without Composer

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

Silverstripe Schema

Add schema's to you pages. This module comes with the following standard schema's

To find out more about these schema's and why you should include them on your page see the documentation by Google.

The end goal is to have a module that adds the necessary tools to easily make your own schema's. This is possible by extending the base SchemaBuilder class.

Creating new Schema's

An example schema builder, that returns a basic array with properties.

The output of the get_schema() method is json encoded and appended to the head of the page. The output can either be an array or an object. For the standard builders, the module supplies different SchemaTypes where schema's can be build with as an alternative to an array. You can inspect one of the predefined builder to see these types in action. A complete list of possible schema types to work with would be one of the future features. Submitting a pull request with any Schema types or builders you created would be much appreciated!

Adding Schema's

To add the schema's to different page types you simply specify these in the config as such:

LocalBusinessSchemaBuilder

The local business schema builder searches for the following fields on the SiteConfig. Address, Suburb, State, Postcode, Country and Phone these can be easily added by the silverstripe-australia/addressable module. The local business builder also checks if the Geocodable extension is set and if so adds the lat and lng to the build schema.

BreadcrumbsSchemaBuilder

The breadcrumb schema builder looks for the standard getBreadcrumbItems() method. You can overwrite this method on your page class if neccicary.

OrganizationSchemaBuilder

The organization builder requires a phone field on the site config. For the SameAs field (Shows social media link in the knowledge graph box) the builder now looks for SocialMediaPlatform relations on SiteConfig. This is something that will be changed for a more generic approach

WebsiteSchemaBuilder

The website schema builder set the site name and url and if FulltextSearchable is enabled it also adds an Search Action. The search action is visible in google as a Sitelinks Searchbox.

ToDo

The following Schema's are to be added in the near future, feel free to make a PR or any suggestions.


All versions of silverstripe-schema with dependencies

PHP Build Version
Package Version
Requires silverstripe/framework Version ^4 || ^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 bramdeleeuw/silverstripe-schema contains the following files

Loading the files please wait ....