Download the PHP package pbrus/astro-quiz without Composer

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

Astro-quiz

GitHub release Written in PHP License License License

A little advanced quiz for astronomy enthusiasts. Designed for students and small groups of amateur astronomers.

astro-quiz

Introduction

The program was designed to run locally, not on the Internet. The application uses a web browser only as an interface. For example, astro-quiz doesn't cooperate with any database but stores all information in text files and utilizes a session mechanism. However, it can be used by many users simultaneously, e.g. for students in a classroom (computers connected through LAN).

Installation

General information

I assume that you're not familiar with PHP applications and how to install them. Let's split the whole installation process into significant parts:

  1. Download and install XAMPP with PHP 7.0 or greater
  2. Install Composer for Linux or Windows
  3. Change the localhost path just editing two lines in httpd.conf file
  4. Start/restart XAMPP
  5. Open yor favourite web browser and type localhost into the address bar

Note that this is the easiest way to install the application because the program does't worry about security on the Internet.

Linux

Execute first two instructions from the General information section manually. If you successfully install XAMPP with default settings, php should be located in the /opt/lampp/bin/ directory. After installation I recommend to move the composer.phar file to any catalog pointed by the $PATH variable and to change its name to composer.

In the next step choose the destination directory where you want to install application, open a terminal window and go there. Download the repo and all required components typing:

Instructions included in 3. and 4. lines will be executed automatically by the install script. To do this log in as root:

and run the script:

Note that the use of sudo instead of su sometimes can't call composer. If everything goes well, you will see the message The installation has been completed. It's time to open your web browser and test the application typing localhost into the address bar.

To start XAMPP after computer rebooting type into the terminal window:

Windows

Execute first two instructions from the General information section manually. If you successfully install XAMPP with default settings, php.exe should be located in the C:\xampp\php\ directory. Note that you have to point at the php.exe file during Composer installation.

composer-install

In the next step create an empty directory to store the whole project. Let's assume that it will be the astro-quiz located in D:\, i.e. D:\astro-quiz\. Open the cmd.exe and go there typing:

and further:

Now it's time to download the project using Composer. Please type into cmd.exe:

Then copy all files and directories from D:\astro-quiz\vendor\pbrus\astro-quiz\ to D:\astro-quiz\ (just change the structure of the project). After all, type into cmd.exe:

Note that your current localization must be D:\astro-quiz\.

At the end you must connect localhost with the project's directory. To do this open the XAMPP Control Panel and edit two lines in the httpd.conf file:

localhost-edit

Save changes and start/restart Apache. Open your web browser and test the application typing localhost into the address bar.

To start XAMPP after computer rebooting open the XAMPP Control Panel and start the Apache module.

Usage

The package contains demo files so you can easily test astro-quiz after the installation process. Of course you can prepare your own questions. Let's see the most important parts of the project.

Web browser

A web browser is a BUI for users and an administrator which oversees the users. To start quiz type into the address bar localhost. To see results, statistics and to manage the database please type into address bar localhost/admin.php. Access to this page is secured by the password stored in the astroquiz.cfg file.

Define own quiz

All files needed to define own quiz must be located in the files/ directory. You should create a text file to store all questions, points, answers and names of images if are required. You can create as many text files as you need. The current quiz is called in the astroquiz.cfg file.

I encourage to visit my website to see more detailed description of this project. The current link can be found on my GitHub profile.

Credits

License

Astro-quiz is licensed under the MIT license. Some external components have own licenses. See the license file for more details.


All versions of astro-quiz with dependencies

PHP Build Version
Package Version
Requires php Version ^7.0
twig/twig Version ~2.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 pbrus/astro-quiz contains the following files

Loading the files please wait ....