Download the PHP package dasunnethsara/zenithphp without Composer

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

icon-192

ZenithPHP

Welcome to ZenithPHP, a simple and lightweight PHP framework designed to streamline web application development. ZenithPHP follows the MVC (Model-View-Controller) architecture and provides developers with a clean and flexible foundation to build modern PHP applications with ease.

Official Documentation

You can find the official documentation for ZenithPHP at ZenithPHP Documentation. The documentation provides detailed information on how to get started with ZenithPHP, including installation instructions, routing, controllers, models, views, and more.

Features

Installation

To get started with ZenithPHP, follow the instructions below:

  1. Clone the repository:

  2. Navigate to the project directory:

  3. Install dependencies using Composer:

  4. Configure your environment:

    • Create a copy of the .env.example file and rename it to .env.
    • Set your database credentials and other necessary configurations.
  5. Start your local development server:

  6. Visit http://localhost:8000 in your browser to see the landing page.

Folder Structure

How to Get Started

To create your first route:

  1. Open App/routes.php and define your route:

  2. Create a new controller (WelcomeController.php) inside App/Controllers/:

  3. Now, create a new view file inside View/welcome.php:

  4. Visit http://localhost:8000/welcome to see the result.

Working with APIs

Now you can create APIs with ZenithPHP. Here's how you can create a simple API:

  1. First, create a new route in App/routes.php:

  2. Create a new model using the CLI tool:

  3. Implement the model method to fetch data from the database:

  4. Create a new controller. For that, you can use the CLI tool:

  5. Implement the controller method to return JSON data:

  6. Visit http://localhost:8000/api/users to see the JSON response.

Pluto Template Engine

The Pluto template engine in ZenithPHP allows you to easily build dynamic views with clean and readable syntax. Here’s a quick overview of its directives:

Pluto Syntax

Example Syntax

HomeController.php

home.pluto.php

Security Features

Contributing

Contributions are welcome! To contribute:

  1. Fork the repository.
  2. Create a new branch for your feature/bugfix.
  3. Submit a pull request with a clear description of your changes.

License

ZenithPHP is open-source and licensed under the MIT License. See the LICENSE file for more details.


Built with ❤️ by Dasun Nethsara


All versions of zenithphp with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
dasunnethsara/zenithphp-core Version ^1.0
firebase/php-jwt Version ^6.10
vlucas/phpdotenv Version ^5.6
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 dasunnethsara/zenithphp contains the following files

Loading the files please wait ....