Download the PHP
package hgh/fox-framework without Composer
On this page you can find all versions of the php package
hgh/fox-framework. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
Vendor hgh Package fox-framework Short Description The mini framework License
MIT
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 fox-framework
Fox
This is a mini framework to run some basic web apps.
Table of contents
Installation
Folder structure of the framework
Controllers
Models
Console
Environment variables
Installation
require the package by following composer command:
Folder structure of the framework
The folder structure of the app is:
Controllers
The controllers to render the web pages. All the controllers must be extended from Fox/Controller/Controller. The parent class will provide some common methods. The list of methods:
render
json
Models
The models to interact with the database. All the models must be extended from Fox/Database/Model. The parent method will provide some methods to interact with database.
The list of all methods:
find(static)
insert(static)
findOne(static)
Console
The commands to run some actions in the CLI. All the consoles must be extended from Fox/Console/Console. Sone notes that must considered:
All the commands must have the SIGNATURE const to use in the console. like sample:action
SINGATURE may have the arguments. Arguments must be surrounded by the {}. sample:action {sampleArgument}
Optional arguments must have ? before the argument name. like sample:action {?sampleArgument}
Environment variables
Variable
Description
Available values
DATABASE
The engine of database
mysql
MYSQL_HOST
The host of MySQL
anything
MYSQL_USERNAME
The username of MySQL
anything
MYSQL_PASSWORD
The password of MySQL
anything
MYSQL_PORT
The port of MySQL
anything
MYSQL_DATABASE
The database name
anything
APP_DEBUG
Debug mode of application. When it is on you can see the errors and their trace
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 hgh/fox-framework contains the following files
Loading the files please wait ....
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.