startci / project
Addons for codeigniter 4
Requires
- php: >=7.2
- adhocore/cron-expr: ^1.1
- composer/composer: ^2.4
- fakerphp/faker: ^1.19
- firebase/php-jwt: ^6.0
- league/climate: ^3.8.2
- nesbot/carbon: ^2.57
- phpdocumentor/reflection-docblock: ^5.3
- psy/psysh: ^0.11.8
- slowprog/composer-copy-file: ^0.3.3
- smarty/smarty: ^4.1
- symfony/console: ^6.0
- symfony/process: ^6.0
- tightenco/collect: ^9.0
Requires (Dev)
- codeigniter/coding-standard: ^1.7
- codeigniter4/framework: ^4.1
- mikey179/vfsstream: 1.6.*
- phpunit/phpunit: *
- squizlabs/php_codesniffer: ^3.3
README
StartCI - CodeIgniter 4 Enhancement Project
Table of Contents
Introduction
Welcome to the documentation of the "StartCI" project - a powerful extension for the CodeIgniter 4 framework!
Requirements
Before you start using "StartCI," make sure you have the following prerequisites:
- PHP 8.1 or higher
- CodeIgniter 4 installed in your development environment
- Composer installed to manage project dependencies
About the Project
"StartCI" is an advanced library designed to enhance the capabilities of the renowned PHP framework, CodeIgniter 4. Developed to provide an efficient and versatile development experience, this project offers a collection of functions, libraries, and additional resources to take your web applications to new heights.
Installation
To install the "StartCI" project, you need to add the following configuration to your composer.json
file:
"repositories": [ { "type": "git", "url": "https://github.com/StartCI/project.git", "reference": "main" } ]
After adding the repository, you can run the following command in your project's root directory:
composer require startci/project:dev-main
To initialize the "StartCI" project and generate the necessary files and configurations, run the following command in your project's root directory:
php spark startci:init
Usage
It seems like you are describing a custom implementation of the "table" method with various functionalities.
Let's clarify the examples you provided:
table('test')->create([ 'field' => 'text' ]); // Creates the 'test' table with a column named 'field' of type 'text' table('test')->def(); // Returns an array with the definition of the 'test' table like ['field' => null] table('test')->rs(); // Returns an array with all the rows from the 'test' table as objects table('test')->first(); // Returns the first row from the 'test' table as an object like {field: 'value'}
Docker
You can use docker-compose for your project
In your launch.json file, add the following code snippet:
{ "name": "Listen for Xdebug", "type": "php", "request": "launch",ß "port": 9003, "pathMappings": { "/var/www/html": "${workspaceFolder}" } }
More Examples
For additional examples and usage details, check out the "test" folder in the "StartCI" project repository. There, you can find practical examples and demonstrations of various functionalities provided by "StartCI."