Giter Club home page Giter Club logo

joomla-platform-examples's Introduction

Joomla Platform Examples

These examples are provided to help you learn how to structure and build applications with the Joomla Platform.

Installation

Clone or download the https://github.com/joomla/joomla-platform and https://github.com/joomla/joomla-platform-examples under the same parent folder. Then copy the bootstrap.dist.php file to bootstrap.php.

For example, if your parent folder is called joomla-platform, you would have the following folders under the joomla-platform folder: build, cli, libraries, media, tests, and web. You would also have a file called bootstrap.php in that folder.

Running Examples

All the examples in the cli folder are run from the command line or terminal. All you need is PHP configured to run from the command line.

All the examples in the web folder are run through the browser. The easiest way to set these up is to soft link or completely copy the folder into your web server document root.

Command Line Applications

The examples found in the cli folder are all based on the new JCli class. The is a base level class purpose built for running applications from the command line.

101-hello-world

This is a simple example application that outputs "Hello World" to the terminal.

argv

This application shows how to access command line arguments.

changelog

This application builds the HTML version of the Joomla Platform change log from the Github API that is used in news annoucements. It provides an example of how to use the JHttp class.

cron-plugins

This application show you how you could use JCli to build a cron manager for Joomla CMS plugins. The plugins would be configured via parameters in the CMS itself, but run via this command line application. It makes use of JLog for logging activity in rolling daily log files. The application would simply be added to any available scheduling software and run at appropriate intervals.

While this example shows how to run all the plugins at the same time, it would not be difficult to add an additional database table to support staggered running of individual plugins.

database

This application shows how to override the constructor and connect to the database.

show-config

Web Applications

The examples found in the web folder are all based on the new JWeb class. This is a base level class purpose built to serve web content for a range of applications including, but not limited to, web services, standalone web sites and CMS's.

101-hello-www

This is a simple web example that outputs "Hello WWW" to the browser.

detect-client

This is a simple web example that shows you how to detect the client properties (browser, platform, etc) that your application is being viewed in.

joomla-platform-examples's People

Contributors

dextercowley avatar eddieajau avatar elkuku avatar louislandry avatar robschley avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.