Giter Club home page Giter Club logo

nette-model's Introduction

nette-model

The missing Abstract Model in Nette framework without dependency (external) but with power, flexibility & features you would love to use so much. @nette

Give us a star, it makes us so happy. Thanks ⭐.️
Or contribute with bug report/error-reporting/feature-request/your-thoughts.

Table of contents

Installation

The prefered method of installation is using composer. Don't have yet? Install & you will love using it hopefully. Install composer from here:

https://getcomposer.org/

Download this package using composer:

composer require farhanianz/nette-model

You are good to go. It uses nette/database. If you are connected to database with your nette framework official packages, go & write some models.

In case, if you don't know how to configure nette database, head over here:

Features

  • Basic Finders (Read)
  • Manipulators (Create, Update, Delete)
  • Soft Delete Behavior.
  • Timestamps Behavior (Keeps track of created_at & updated_at automatically)
  • Overright behaviors at any point.
  • A handful of customization/control variables.
  • 1:1, 1:Many relationships
  • No SQL Injection (Auto Escaping).
  • Auto-detects table name based on model class.
  • Pagination, Sorting & Much more.
  • You get active row with finders, so manipulate any time.
  • All features of nette database core & explorer available at any point.

Principlals

  • Well documented codes.
  • Hassle free usage.
  • Uses only nette components.
  • Keep it minimal but most usable.
  • Extended facilities with minimum impact.

Todo:

  • Advanced Finders.
  • Entity Support.

Documentation

Coming soon: untill then you can browse the codes, it's documented at it's best.

NB:

  • Create an issue for feature request.
  • Write your thoughts on it by creating issue.
  • Inspired From Codeignitet 4.

Additional Note:

  • Contributions are highly welcome & needed.
  • Even if an bug report, feature request, doc writing or anything is appriciated.
  • I spent my times on it, kindly do a little in favor of making the library more usuable & powerful.

nette-model's People

Contributors

farhanshares avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.