Download the PHP package devmboo/monolog without Composer

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

Monolog PHP Framework 🎀

Welcome to Monolog, a custom PHP framework for building modern and dynamic web applications. This framework is designed to be simple, flexible, and efficient for both small and large projects.


πŸ› οΈ Framework Overview

Monolog is a PHP framework that streamlines the development process by providing easy-to-use CLI commands, project scaffolding, and environment configurations. It helps you quickly build out essential features like controllers, models, migrations, views, and more.

It was built using PHP 8.3.x and relies on Composer for dependency management.


πŸ—‚οΈ Project Structure

Here's a breakdown of the directory structure in the Monolog project:


πŸ“‹ Features


βš™οΈ Installation & Setup

To get started with Monolog, follow these steps:

1. Install project CLI

2. Navigate to the project directory

3. Install dependencies using Composer

Ensure that you have Composer installed. If you don't have it, you can install it by following the instructions on the official website.

This will install all the required dependencies for the project.

4. Install front-end dependencies (Tailwind CSS)

Monolog uses Tailwind CSS for styling. To install the required NPM packages, run the following:

This will install Tailwind and other necessary front-end dependencies.

5. Configure the .env file

Rename the .env.example file to .env and fill in the necessary configuration details:

6. Build the front-end assets

Once NPM packages are installed, you can build the front-end assets by running:

This will compile your assets, including Tailwind CSS, and make them ready for use.

7. Start the development server

Use the following command to start the server:

This command will launch the built-in PHP server using the port defined in your .env file. By default, it uses port 8000.

8. Create layouts and other components

You can create layouts, controllers, models, migrations, and other components using the following commands:


πŸš€ How to Code

  1. Controllers: Store your controllers in the /src/app/controllers directory. You can generate them using the make:controller command.
  2. Models: Create models in /src/app/models. Use the make:model command for automatic generation.
  3. Migrations: Define your database structure using migrations. Generate them with make:migration.
  4. Views: All views are stored in /resources/views. You can create views with make:view or create layouts that are used globally.
  5. Layouts: Use layouts for structuring the HTML template of your application. These can be created using the make:layout command.

You can easily extend and modify any part of this framework to meet your project's needs.


πŸ”§ Available CLI Commands

Here’s a list of the available commands:

Command Description
php mono.php server Starts the built-in PHP server.
php mono.php standard Disables the application.
php mono.php make:controller <name> Creates a new controller.
php mono.php make:model <name> Creates a new model.
php mono.php make:migration <name> Creates a new migration file.
php mono.php make:middleware <name> Creates a new middleware file.
php mono.php make:seeder <name> Creates a new seeder.
php mono.php make:view <name> Creates a new view file.
php mono.php make:layout <name> Creates a new layout template.
php mono.php make:component <name> Creates a new component file.
php mono.php make:mail <name> Creates a new mail layout file template.
php mono.php make:seed Executes all seeder classes to insert initial data into the database.
php mono.php make:migrate Executes all pending migrations in the database.

πŸ“„ License

This project is open source and available under the MIT License.


πŸ”‘ Documentation Summary

Method Description
handle() Orchestrates the application's initialization, including environment loading, request capturing, and route dispatching.

Monolog - Basic CRUD Example

Introduction

This document provides a basic implementation of a CRUD (Create, Read, Update, Delete) system for a User model using the Model class. The User model extends Model, leveraging its built-in database methods.

Prerequisites

User Model Implementation

Create a User model that extends Model use cli php mono.php make:model :

CRUD Operations

1. Create a User

2. Retrieve All Users

3. Find a User by ID

4. Update a User

5. Delete a User

Conclusion

This example demonstrates how to implement a basic CRUD system using the Model class. You can extend this functionality by adding additional methods and refining validations.


/**


πŸ’¬ Questions?

Feel free to open an issue or ask questions through our discussion board. Happy coding! 😊


All versions of monolog with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
phpmailer/phpmailer Version ^6.9
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 devmboo/monolog contains the following files

Loading the files please wait ....