GithubHelp home page GithubHelp logo

uf_import's Introduction

IMPORT

Basic tool to import users from a CSV to userfrosting4

Installation

  1. Edit UserFrosting app/sprinkles.json file and add import to the base list. Your sprinkles.json should look like this:
{
    "require": {
    },
    "base": [
        "core",
        "account",
        "admin",
        "import"
    ]
}
  1. Open up a command prompt at the root of your UserFrosting app and run composer update to include the sprinkle in your site.
  2. Also run php bakery build-assets --compile to get all the assets included.

Configuration

You can upload CSV files either with or without a header row. The configuration file (config/default.php) is currently set to expect a header row with the default UserFrosting user fields:

  • user_name
  • first_name
  • last_name
  • email
  • locale
  • group_id

If you include a header row, the order of the columns is not important as values are keyed directly to the column header.

You can also change the header_row setting to FALSE in which case the header_keys array will be used. In this case, please ensure your upload file has the columns in the exact order shown in the configuration file.

Notes

  • This sprinkle must be loaded after account as it replaces the default admin dashboard for viewing users.
  • Code may contain bugs or errors. Please open an issue if you find one.

uf_import's People

Contributors

noellekimiko avatar

Stargazers

 avatar

Watchers

 avatar  avatar

uf_import's Issues

Assign roles during import

If roles could be assigned during the import process, it would save the admins time later. Otherwise, roles have to be assigned manually through the admin panel for each new user.

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.