Part of BuzzingPixel's Corbomite project.
This project provides a very thin layer on top of Atlas to make it available to Corbomite's DI and CLI.
When you require this into a Corbomite project, the CLI commands and dependency injection config will automatically be set up. But you will need to set up some environment variables.
The following environment variables are optional:
DB_PORT(defaults to none, can also set to 'false' to disable)
DB_DATABASE(can also set to 'false' to disable)
utf8mb4, can also set to 'false' to disable)
The following environment variables need to be set:
The last two tell Corbomite (Atlas) 1). what namespace to use when creating the data skeleton classes, and 2). what directory to put those classes in.
php app db/generate-skeleton
Run the skeleton generation command on first run and any time your database schema changes so all of Atlas' classes will be set up for you to use.
You should inject
\corbomite\db\Factory into your classes where you need the ORM so you can use the
makeOrm method on the factory to get a new instance of the ORM.
Copyright 2019 BuzzingPixel, LLC
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.